mirror of
https://github.com/wled/WLED.git
synced 2025-07-19 00:36:36 +00:00
Destructor must be public
This commit is contained in:
parent
59a79a30da
commit
0afd2fe720
@ -54,12 +54,6 @@ private:
|
|||||||
_lastTemperature = 0;
|
_lastTemperature = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
~UsermodAHT10()
|
|
||||||
{
|
|
||||||
delete _aht;
|
|
||||||
_aht = nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifndef WLED_DISABLE_MQTT
|
#ifndef WLED_DISABLE_MQTT
|
||||||
void mqttInitialize()
|
void mqttInitialize()
|
||||||
{
|
{
|
||||||
@ -322,6 +316,12 @@ public:
|
|||||||
_initDone = true;
|
_initDone = true;
|
||||||
return configComplete;
|
return configComplete;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
~UsermodAHT10()
|
||||||
|
{
|
||||||
|
delete _aht;
|
||||||
|
_aht = nullptr;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const char UsermodAHT10::_name[] PROGMEM = "AHTxx";
|
const char UsermodAHT10::_name[] PROGMEM = "AHTxx";
|
||||||
|
@ -210,12 +210,6 @@ private:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
~UsermodINA226()
|
|
||||||
{
|
|
||||||
delete _ina226;
|
|
||||||
_ina226 = nullptr;
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifndef WLED_DISABLE_MQTT
|
#ifndef WLED_DISABLE_MQTT
|
||||||
void mqttInitialize()
|
void mqttInitialize()
|
||||||
{
|
{
|
||||||
@ -551,6 +545,13 @@ public:
|
|||||||
_initDone = true;
|
_initDone = true;
|
||||||
return configComplete;
|
return configComplete;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
~UsermodINA226()
|
||||||
|
{
|
||||||
|
delete _ina226;
|
||||||
|
_ina226 = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const char UsermodINA226::_name[] PROGMEM = "INA226";
|
const char UsermodINA226::_name[] PROGMEM = "INA226";
|
||||||
|
@ -159,5 +159,5 @@ inline void UsermodMqttSwitch::updateState(uint8_t pinNr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static UsermodMqttSwitc mqtt_switch_v2;
|
static UsermodMqttSwitch mqtt_switch_v2;
|
||||||
REGISTER_USERMOD(mqtt_switch_v2);
|
REGISTER_USERMOD(mqtt_switch_v2);
|
Loading…
x
Reference in New Issue
Block a user