mirror of https://github.com/arendst/Tasmota.git
Fix undocumented use of Energy struct
This commit is contained in:
parent
2cee622af8
commit
01e51b2c9d
|
@ -1401,8 +1401,8 @@ void EnergyDrvInit(void) {
|
||||||
EnergySettingsLoad(0);
|
EnergySettingsLoad(0);
|
||||||
EnergyRtcSettingsLoad();
|
EnergyRtcSettingsLoad();
|
||||||
AddLog(LOG_LEVEL_INFO, PSTR("NRG: Init driver %d"), TasmotaGlobal.energy_driver);
|
AddLog(LOG_LEVEL_INFO, PSTR("NRG: Init driver %d"), TasmotaGlobal.energy_driver);
|
||||||
} else {
|
// } else {
|
||||||
free(Energy); // No energy driver found so release memory
|
// free(Energy); // No energy driver found so release memory
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue