kopia lustrzana https://github.com/Aircoookie/WLED
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
rodzic
7cdafa76a5
commit
15bc6159f9
|
@ -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();
|
||||
|
|
Ładowanie…
Reference in New Issue