Fix max blinkcount to 32000

This commit is contained in:
Theo Arends 2022-06-03 15:15:25 +02:00
parent 8c0324a966
commit 9e254d851a
1 changed files with 1 additions and 1 deletions

View File

@ -999,7 +999,7 @@ void CmndBlinktime(void)
void CmndBlinkcount(void)
{
if ((XdrvMailbox.payload >= 0) && (XdrvMailbox.payload < 65536)) {
if ((XdrvMailbox.payload >= 0) && (XdrvMailbox.payload <= 32000)) {
Settings->blinkcount = XdrvMailbox.payload; // 0 - 65535
if (TasmotaGlobal.blink_counter) { TasmotaGlobal.blink_counter = Settings->blinkcount *2; }
}