mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 20:56:35 +00:00
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)) {
|
if ((XdrvMailbox.payload >= 0) && (XdrvMailbox.payload < 3601)) {
|
||||||
Settings.tele_period = (1 == XdrvMailbox.payload) ? TELE_PERIOD : XdrvMailbox.payload;
|
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
|
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);
|
ResponseCmndNumber(Settings.tele_period);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user