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:
parent
7cdafa76a5
commit
15bc6159f9
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user