fix. teleperiod issue with deep_sleep. #6842

#6842 fixed
This commit is contained in:
stefanbode 2019-11-07 10:55:31 +01:00 committed by GitHub
parent 799f05dedf
commit 5dcf0de19a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -1336,7 +1336,8 @@ void CmndTeleperiod(void)
if ((XdrvMailbox.payload >= 0) && (XdrvMailbox.payload < 3601)) {
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;
tele_period = Settings.tele_period;
prep_called = false;
}
ResponseCmndNumber(Settings.tele_period);
}