mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 18:56:38 +00:00
Fix compile error when `#ifdef USE_IR_RECEIVE
` is disabled regression from 9.1.0.2
Fix compile error when ``#ifdef USE_IR_RECEIVE`` is disabled regression from 9.1.0.2
This commit is contained in:
parent
25a660bdec
commit
85ed1bebca
@ -15,6 +15,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
- Shelly Dimmer power on state (#10154, #10182)
|
- Shelly Dimmer power on state (#10154, #10182)
|
||||||
- Wemo emulation for single devices (#10165, #10194)
|
- Wemo emulation for single devices (#10165, #10194)
|
||||||
- ESP32 LoadStoreError when using ``#define USER_TEMPLATE`` (#9506)
|
- ESP32 LoadStoreError when using ``#define USER_TEMPLATE`` (#9506)
|
||||||
|
- Compile error when ``#ifdef USE_IR_RECEIVE`` is disabled regression from 9.1.0.2
|
||||||
|
|
||||||
## [Released]
|
## [Released]
|
||||||
|
|
||||||
|
@ -68,3 +68,4 @@ The attached binaries can also be downloaded from http://ota.tasmota.com/tasmota
|
|||||||
- Shelly Dimmer power on state (#10154, #10182)
|
- Shelly Dimmer power on state (#10154, #10182)
|
||||||
- Wemo emulation for single devices (#10165, #10194)
|
- Wemo emulation for single devices (#10165, #10194)
|
||||||
- ESP32 LoadStoreError when using ``#define USER_TEMPLATE`` (#9506)
|
- ESP32 LoadStoreError when using ``#define USER_TEMPLATE`` (#9506)
|
||||||
|
- Compile error when ``#ifdef USE_IR_RECEIVE`` is disabled regression from 9.1.0.2
|
||||||
|
@ -290,7 +290,10 @@ uint32_t IrRemoteCmndIrSendJson(void)
|
|||||||
AddLog_P(LOG_LEVEL_DEBUG, PSTR("IRS: protocol_text %s, protocol %s, bits %d, data %s (0x%s), repeat %d, protocol_code %d"),
|
AddLog_P(LOG_LEVEL_DEBUG, PSTR("IRS: protocol_text %s, protocol %s, bits %d, data %s (0x%s), repeat %d, protocol_code %d"),
|
||||||
protocol_text, protocol, bits, ulltoa(data, dvalue, 10), Uint64toHex(data, hvalue, bits), repeat, protocol_code);
|
protocol_text, protocol, bits, ulltoa(data, dvalue, 10), Uint64toHex(data, hvalue, bits), repeat, protocol_code);
|
||||||
|
|
||||||
|
#ifdef USE_IR_RECEIVE
|
||||||
if (irrecv != nullptr) { irrecv->disableIRIn(); }
|
if (irrecv != nullptr) { irrecv->disableIRIn(); }
|
||||||
|
#endif // USE_IR_RECEIVE
|
||||||
|
|
||||||
switch (protocol_code) { // Equals IRremoteESP8266.h enum decode_type_t
|
switch (protocol_code) { // Equals IRremoteESP8266.h enum decode_type_t
|
||||||
#ifdef USE_IR_SEND_RC5
|
#ifdef USE_IR_SEND_RC5
|
||||||
case RC5:
|
case RC5:
|
||||||
@ -305,10 +308,14 @@ uint32_t IrRemoteCmndIrSendJson(void)
|
|||||||
irsend->sendNEC(data, (bits > NEC_BITS) ? NEC_BITS : bits, repeat); break;
|
irsend->sendNEC(data, (bits > NEC_BITS) ? NEC_BITS : bits, repeat); break;
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
|
#ifdef USE_IR_RECEIVE
|
||||||
if (irrecv != nullptr) { irrecv->enableIRIn(); }
|
if (irrecv != nullptr) { irrecv->enableIRIn(); }
|
||||||
|
#endif // USE_IR_RECEIVE
|
||||||
return IE_PROTO_UNSUPPORTED;
|
return IE_PROTO_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
#ifdef USE_IR_RECEIVE
|
||||||
if (irrecv != nullptr) { irrecv->enableIRIn(); }
|
if (irrecv != nullptr) { irrecv->enableIRIn(); }
|
||||||
|
#endif // USE_IR_RECEIVE
|
||||||
|
|
||||||
return IE_NO_ERROR;
|
return IE_NO_ERROR;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user