From 4b6ad8b904048a730cdbaa4caafa8a6977ef0d47 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sun, 11 Oct 2020 10:51:20 +0200 Subject: [PATCH] Fix compile error when scripting and shutter is enabled Fix compile error when scripting and shutter is enabled (#9512) --- tasmota/xdrv_27_shutter.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasmota/xdrv_27_shutter.ino b/tasmota/xdrv_27_shutter.ino index 0cf059274..9a1920e57 100644 --- a/tasmota/xdrv_27_shutter.ino +++ b/tasmota/xdrv_27_shutter.ino @@ -517,6 +517,7 @@ bool ShutterState(uint32_t device) void ShutterAllowPreStartProcedure(uint8_t i) { +#ifdef USE_RULES uint32_t uptime_Local=0; AddLog_P2(LOG_LEVEL_DEBUG_MORE, PSTR("SHT: Delay Start. var%d <99>=<%s>, max10s?"),i+i, rules_vars[i]); rules_flag.shutter_moving = 1; @@ -526,6 +527,7 @@ void ShutterAllowPreStartProcedure(uint8_t i) loop(); } AddLog_P2(LOG_LEVEL_DEBUG_MORE, PSTR("SHT: Delay Start. Done")); +#endif // USE_RULES } void ShutterStartInit(uint32_t i, int32_t direction, int32_t target_pos)