Skip to content

Commit

Permalink
Fix IR-Remote type to cfg.json (Aircoookie#1395)
Browse files Browse the repository at this point in the history
* Save IR-Remote type to cfg.json

...instead of defaulting it to 0 (this way the IR-Remote waas disabled after each reboot).
  • Loading branch information
Def3nder authored Nov 29, 2020
1 parent 3a3948e commit ed0b507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wled00/cfg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ed0b507

Please sign in to comment.