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