Fix lost syslog connection regression from 6.5.0.4

Fix lost syslog connection regression from 6.5.0.4
This commit is contained in:
Theo Arends 2019-04-13 15:12:25 +02:00
parent 2f3dda3e03
commit 11146c2225
1 changed files with 2 additions and 0 deletions

View File

@ -2558,6 +2558,8 @@ extern struct rst_info resetInfo;
void setup(void)
{
global_state.data = 3; // Init global state (wifi_down, mqtt_down) to solve possible network issues
RtcRebootLoad();
if (!RtcRebootValid()) { RtcReboot.fast_reboot_count = 0; }
RtcReboot.fast_reboot_count++;