From 11ed01983c6f23b14043f5a4ed912ed0dae6329b Mon Sep 17 00:00:00 2001 From: Barbudor Date: Fri, 20 Nov 2020 00:01:48 +0100 Subject: [PATCH] comparison should be >= --- tasmota/support.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/support.ino b/tasmota/support.ino index 2d3519084..0fcd45cc8 100644 --- a/tasmota/support.ino +++ b/tasmota/support.ino @@ -1168,7 +1168,7 @@ int ResponseJsonEndEnd(void) #ifdef ESP8266 uint16_t GpioConvert(uint8_t gpio) { - if (gpio > ARRAY_SIZE(kGpioConvert)) { + if (gpio >= ARRAY_SIZE(kGpioConvert)) { return AGPIO(GPIO_USER); } return pgm_read_word(kGpioConvert + gpio);