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)
pull/3004/head
Frank 2023-01-04 12:54:02 +01:00
rodzic 7cdafa76a5
commit 15bc6159f9
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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