mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 04:36:31 +00:00
Merge pull request #9922 from barbudor/pr-GpioConvert
comparison should be >=
This commit is contained in:
commit
a46e19e3b9
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user