Compare commits

...

5 Commits

Author SHA1 Message Date
kevlarh
a16b0f03c9
Merge 8830a94bdd into 9b3eda0974 2024-09-20 14:40:32 +08:00
kevlarh
8830a94bdd Merge branch 'master' of https://github.com/kevlarh/esp-idf 2024-04-17 20:25:47 +01:00
kevlarh
d524038de7 Eliminate compiler warning about 'BIT' macro
Add parentheses to comply with compiler suggestion
2024-04-17 20:25:23 +01:00
kevlarh
93e9873b69 Revert "Eliminate compiler warning about 'BIT' macro"
This reverts commit 50d7e4e41c.
2024-04-17 20:14:40 +01:00
kevlarh
50d7e4e41c Eliminate compiler warning about 'BIT' macro
Add parentheses to comply with compiler suggestion
2024-04-17 06:41:38 +01:00

View File

@ -658,9 +658,9 @@ static inline bool gpio_ll_is_digital_io_hold(gpio_dev_t *hw, uint32_t gpio_num)
case 1: mask = BIT(1); break;
case 3: mask = BIT(0); break;
case 5: mask = BIT(8); break;
case 6 ... 11 : mask = BIT(gpio_num - 4); break;
case 6 ... 11 : mask = BIT((gpio_num - 4)); break;
case 16 ... 19:
case 21 ... 23: mask = BIT(gpio_num - 7); break;
case 21 ... 23: mask = BIT((gpio_num - 7)); break;
default: break;
}