From 2ca6bbde33a496e01890c64db0196f7b94c731a9 Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Sun, 27 Feb 2022 18:02:40 +0100 Subject: [PATCH] fix issue #859 --- src/rcommand.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/rcommand.cpp b/src/rcommand.cpp index 71c6f453..1654b345 100644 --- a/src/rcommand.cpp +++ b/src/rcommand.cpp @@ -85,8 +85,6 @@ void set_sendcycle(uint8_t val[]) { void set_sleepcycle(uint8_t val[]) { // swap byte order from msb to lsb, note: this is a platform dependent hack uint16_t t = __builtin_bswap16(*(uint16_t *)(val)); - if (t == 0) - return; cfg.sleepcycle = t; ESP_LOGI(TAG, "Remote command: set sleep cycle to %d seconds", cfg.sleepcycle * 10);