Fix some compile errors

This commit is contained in:
Theo Arends 2020-04-20 20:00:49 +02:00
parent 0b08c72247
commit f594c72609
2 changed files with 5 additions and 0 deletions

View File

@ -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);
}

View File

@ -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.h>
Ticker TickerShutter;