mirror of https://github.com/arendst/Tasmota.git
Publish teleperiod data on command TelePeriod
Publish teleperiod data on command ``TelePeriod`` (#2567)
This commit is contained in:
parent
79083a9882
commit
80c8bf675c
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue