Cast pin_number to int8_t so that it can be used with switch-case.

This commit is contained in:
Kong Wai Weng 2022-09-12 18:56:15 +08:00
parent 0ae015e4d9
commit c157f1cb39
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ void board_init(void) {
bool espressif_board_reset_pin_number(gpio_num_t pin_number) {
// For GPIOs used in Maker Feather AIoT S3, set the default state to pull down
// as most of them are connected to active high LED.
switch (pin_number) {
switch ((int8_t)pin_number) {
case 4:
case 5:
case 6: