Merge pull request #6858 from stefanbode/patch-5

fix. teleperiod issue with deep_sleep. #6842
This commit is contained in:
Theo Arends 2019-11-07 10:57:18 +01:00 committed by GitHub
commit 7581439133
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1337,6 +1337,7 @@ void CmndTeleperiod(void)
Settings.tele_period = (1 == XdrvMailbox.payload) ? TELE_PERIOD : XdrvMailbox.payload;
if ((Settings.tele_period > 0) && (Settings.tele_period < 10)) Settings.tele_period = 10; // Do not allow periods < 10 seconds
tele_period = Settings.tele_period;
prep_called = false;
}
ResponseCmndNumber(Settings.tele_period);
}