UM Battery: fix for deprecated function call

wled00/../usermods/Battery/usermod_v2_Battery.h:446:48: warning: 'void PinManagerClass::deallocatePin(byte)' is deprecated: Replaced by two-parameter deallocatePin(gpio, ownerTag)
This commit is contained in:
Frank 2023-01-04 12:54:02 +01:00
parent 7cdafa76a5
commit 15bc6159f9

View File

@ -443,7 +443,7 @@ class UsermodBattery : public Usermod
if (newBatteryPin != batteryPin) if (newBatteryPin != batteryPin)
{ {
// deallocate pin // deallocate pin
pinManager.deallocatePin(batteryPin); pinManager.deallocatePin(batteryPin, PinOwner::UM_Battery);
batteryPin = newBatteryPin; batteryPin = newBatteryPin;
// initialise // initialise
setup(); setup();