From a33c9989ff498df126413820af737b22cafc33b4 Mon Sep 17 00:00:00 2001 From: KlausMu Date: Mon, 29 Jan 2024 18:58:55 +0100 Subject: [PATCH] made code compile for "device_smarthome" when WiFi is deactivated --- Platformio/src/device_smarthome/device_smarthome.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Platformio/src/device_smarthome/device_smarthome.cpp b/Platformio/src/device_smarthome/device_smarthome.cpp index bbbc3f4..1c9c999 100644 --- a/Platformio/src/device_smarthome/device_smarthome.cpp +++ b/Platformio/src/device_smarthome/device_smarthome.cpp @@ -2,8 +2,10 @@ #include "device_smarthome/device_smarthome.h" void register_device_smarthome() { + #ifdef ENABLE_KEYBOARD_MQTT commands[SMARTHOME_MQTT_BULB1_SET] = makeCommandData(MQTT, {"bulb1_set" }); // payload must be set when calling commandHandler commands[SMARTHOME_MQTT_BULB2_SET] = makeCommandData(MQTT, {"bulb2_set" }); // payload must be set when calling commandHandler commands[SMARTHOME_MQTT_BULB1_BRIGHTNESS_SET] = makeCommandData(MQTT, {"bulb1_setbrightness" }); // payload must be set when calling commandHandler commands[SMARTHOME_MQTT_BULB2_BRIGHTNESS_SET] = makeCommandData(MQTT, {"bulb2_setbrightness" }); // payload must be set when calling commandHandler + #endif }