Destructor must be public

This commit is contained in:
Will Tatam
2025-01-15 12:46:06 +00:00
parent 59a79a30da
commit 0afd2fe720
3 changed files with 14 additions and 13 deletions

View File

@@ -54,12 +54,6 @@ private:
_lastTemperature = 0;
}
~UsermodAHT10()
{
delete _aht;
_aht = nullptr;
}
#ifndef WLED_DISABLE_MQTT
void mqttInitialize()
{
@@ -322,6 +316,12 @@ public:
_initDone = true;
return configComplete;
}
~UsermodAHT10()
{
delete _aht;
_aht = nullptr;
}
};
const char UsermodAHT10::_name[] PROGMEM = "AHTxx";