From 60503c31fbcf558595771e4829db5901540c7f4c Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Sat, 20 Mar 2021 23:59:17 +0100 Subject: [PATCH] IR pin saving. --- wled00/cfg.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/wled00/cfg.cpp b/wled00/cfg.cpp index d9de793d..1717a4f3 100644 --- a/wled00/cfg.cpp +++ b/wled00/cfg.cpp @@ -496,11 +496,9 @@ void serializeConfig() { hw_btn_ins_0_macros.add(macroDoublePress); #ifndef WLED_DISABLE_INFRARED - if (irPin>=0) { - JsonObject hw_ir = hw.createNestedObject("ir"); - hw_ir["pin"] = irPin; - hw_ir["type"] = irEnabled; // the byte 'irEnabled' does contain the IR-Remote Type ( 0=disabled ) - } + JsonObject hw_ir = hw.createNestedObject("ir"); + hw_ir["pin"] = irPin; + hw_ir["type"] = irEnabled; // the byte 'irEnabled' does contain the IR-Remote Type ( 0=disabled ) #endif JsonObject hw_relay = hw.createNestedObject(F("relay"));