From 0815311e3a0766425fd87b7400bd562fb9a834e9 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Thu, 12 Nov 2020 16:11:32 +0100 Subject: [PATCH] Fix one of many warnings --- tasmota/tasmota_globals.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasmota/tasmota_globals.h b/tasmota/tasmota_globals.h index 109a1e505..f32c233d6 100644 --- a/tasmota/tasmota_globals.h +++ b/tasmota/tasmota_globals.h @@ -394,8 +394,8 @@ const char kWebColors[] PROGMEM = #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) #endif -#define AGPIO(x) (x<<5) -#define BGPIO(x) (x>>5) +#define AGPIO(x) ((x)<<5) +#define BGPIO(x) ((x)>>5) #ifdef USE_DEVICE_GROUPS #define SendDeviceGroupMessage(DEVICE_INDEX, REQUEST_TYPE, ...) _SendDeviceGroupMessage(DEVICE_INDEX, REQUEST_TYPE, __VA_ARGS__, 0)