mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-27 13:16:45 +00:00
Make statusupdates smoother
This commit is contained in:
parent
ac98efff3e
commit
b1b8141506
@ -1216,12 +1216,14 @@ void dispatch_statusupdate(const char*, const char*, uint8_t source)
|
|||||||
|
|
||||||
void dispatch_current_state(uint8_t source)
|
void dispatch_current_state(uint8_t source)
|
||||||
{
|
{
|
||||||
dispatch_statusupdate(NULL, NULL, source);
|
|
||||||
dispatch_idle(NULL, NULL, source);
|
dispatch_idle(NULL, NULL, source);
|
||||||
dispatch_current_page();
|
dispatch_current_page();
|
||||||
dispatch_send_sensordata(NULL, NULL, source);
|
|
||||||
dispatch_send_discovery(NULL, NULL, source);
|
|
||||||
dispatch_state_antiburn(hasp_get_antiburn());
|
dispatch_state_antiburn(hasp_get_antiburn());
|
||||||
|
|
||||||
|
// delayed published topic
|
||||||
|
dispatchSecondsToNextTeleperiod = 0;
|
||||||
|
dispatchSecondsToNextSensordata = 1;
|
||||||
|
dispatchSecondsToNextDiscovery = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Format filesystem and erase EEPROM
|
// Format filesystem and erase EEPROM
|
||||||
|
Loading…
x
Reference in New Issue
Block a user