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).
This commit is contained in:
parent
3a3948e74f
commit
ed0b507fb5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user