From ed0b507fb5fe5f00d5678c1fac57db792d6fd551 Mon Sep 17 00:00:00 2001 From: Def3nder Date: Sun, 29 Nov 2020 22:29:44 +0100 Subject: [PATCH] Fix IR-Remote type to cfg.json (#1395) * Save IR-Remote type to cfg.json ...instead of defaulting it to 0 (this way the IR-Remote waas disabled after each reboot). --- wled00/cfg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/cfg.cpp b/wled00/cfg.cpp index 5a58f2c2..9e5c9e82 100644 --- a/wled00/cfg.cpp +++ b/wled00/cfg.cpp @@ -435,7 +435,7 @@ void serializeConfig() { #if defined(IRPIN) && IRPIN > -1 JsonObject hw_ir = hw.createNestedObject("ir"); hw_ir[F("pin")] = IRPIN; - hw_ir[F("type")] = 0; + hw_ir[F("type")] = irEnabled; // the byte 'irEnabled' does contain the IR-Remote Type ( 0=disabled ) #endif #if defined(RLYPIN) && RLYPIN > -1