From f594c726097ae4311907060714caad1e3c3b5d91 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Mon, 20 Apr 2020 20:00:49 +0200 Subject: [PATCH] Fix some compile errors --- tasmota/support_device_groups.ino | 2 ++ tasmota/xdrv_27_shutter.ino | 3 +++ 2 files changed, 5 insertions(+) diff --git a/tasmota/support_device_groups.ino b/tasmota/support_device_groups.ino index 6ed072490..26684cafc 100644 --- a/tasmota/support_device_groups.ino +++ b/tasmota/support_device_groups.ino @@ -740,7 +740,9 @@ void ProcessDeviceGroupMessage(char * packet, int packet_length) } } else if (item == DGR_ITEM_EVENT) { +#ifdef USE_RULES CmndEvent(); +#endif } XdrvCall(FUNC_DEVICE_GROUP_ITEM); } diff --git a/tasmota/xdrv_27_shutter.ino b/tasmota/xdrv_27_shutter.ino index f94464cad..85bb900cf 100644 --- a/tasmota/xdrv_27_shutter.ino +++ b/tasmota/xdrv_27_shutter.ino @@ -53,6 +53,9 @@ void (* const ShutterCommand[])(void) PROGMEM = { const char JSON_SHUTTER_POS[] PROGMEM = "\"" D_PRFX_SHUTTER "%d\":{\"Position\":%d,\"Direction\":%d,\"Target\":%d}"; const char JSON_SHUTTER_BUTTON[] PROGMEM = "\"" D_PRFX_SHUTTER "%d\":{\"Button%d\":%d}"; +const char kCommands[] PROGMEM = + D_CMND_WIFICONFIG " 2|" D_CMND_WIFICONFIG " 2|" D_CMND_WIFICONFIG " 2|" D_CMND_RESTART " 1|" D_CMND_UPGRADE " 1"; + #include Ticker TickerShutter;