From b078d10bf4744fbcdf671b61b82cdbc2da30507a Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Mon, 27 May 2019 14:17:31 +0200 Subject: [PATCH] Fix compilation error Fix compilation error --- sonoff/sonoff.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonoff/sonoff.ino b/sonoff/sonoff.ino index 905e8b3ea..38f28df0e 100755 --- a/sonoff/sonoff.ino +++ b/sonoff/sonoff.ino @@ -851,7 +851,7 @@ void MqttDataHandler(char* topic, uint8_t* data, unsigned int data_len) case P_RGB_REMAP: LightUpdateColorMapping(); break; -#ifdef USE_IR_RECEIVE +#if defined(USE_IR_REMOTE) && defined(USE_IR_RECEIVE) case P_IR_UNKNOW_THRESHOLD: IrReceiveUpdateThreshold(); break;