comparison should be >=

This commit is contained in:
Barbudor 2020-11-20 00:01:48 +01:00
parent 747f633c96
commit 11ed01983c
1 changed files with 1 additions and 1 deletions

View File

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