Publish teleperiod data on command TelePeriod

Publish teleperiod data on command ``TelePeriod`` (#2567)
This commit is contained in:
Theo Arends 2020-05-16 17:44:29 +02:00
parent 79083a9882
commit 80c8bf675c
1 changed files with 2 additions and 1 deletions

View File

@ -1600,8 +1600,9 @@ 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;
}
tele_period = Settings.tele_period; // Show teleperiod data also on empty command
ResponseCmndNumber(Settings.tele_period);
}