mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-22 21:36:11 +02:00
fix #480 AP Mode on fresh ESP
included #483 improvements fix #468 last_success MQTT fix #468 update available status at sunset fix #447 reorderd enqueue commands to not have same payload length in a row added ssd1306 and nokia display to build script
This commit is contained in:
parent
9da0fc4058
commit
d9290d9fdf
15 changed files with 285 additions and 206 deletions
|
@ -160,17 +160,12 @@ class Inverter {
|
|||
}
|
||||
|
||||
uint8_t getQueuedCmd() {
|
||||
if (_commandQueue.empty()){
|
||||
// Fill with default commands
|
||||
enqueCommand<InfoCommand>(RealTimeRunData_Debug);
|
||||
if (_commandQueue.empty()) {
|
||||
if (fwVersion == 0)
|
||||
{ // info needed maybe after "one night" (=> DC>0 to DC=0 and to DC>0) or reboot
|
||||
enqueCommand<InfoCommand>(InverterDevInform_All);
|
||||
}
|
||||
enqueCommand<InfoCommand>(RealTimeRunData_Debug);
|
||||
if (actPowerLimit == 0xffff)
|
||||
{ // info needed maybe after "one nigth" (=> DC>0 to DC=0 and to DC>0) or reboot
|
||||
enqueCommand<InfoCommand>(SystemConfigPara);
|
||||
}
|
||||
}
|
||||
return _commandQueue.front().get()->getCmd();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue