Skip to content

Commit c157f1c

Browse files
committed
Cast pin_number to int8_t so that it can be used with switch-case.
1 parent 0ae015e commit c157f1c

File tree

1 file changed

+1
-1
lines changed
  • ports/espressif/boards/cytron_maker_feather_aiot_s3

1 file changed

+1
-1
lines changed

ports/espressif/boards/cytron_maker_feather_aiot_s3/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void board_init(void) {
3838
bool espressif_board_reset_pin_number(gpio_num_t pin_number) {
3939
// For GPIOs used in Maker Feather AIoT S3, set the default state to pull down
4040
// as most of them are connected to active high LED.
41-
switch (pin_number) {
41+
switch ((int8_t)pin_number) {
4242
case 4:
4343
case 5:
4444
case 6:

0 commit comments

Comments
 (0)