Skip to content

Commit 29ce756

Browse files
committed
PR feedback.
1 parent a79ac35 commit 29ce756

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ports/stm/boards/thunderpack/pins.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
1010
{ MP_ROM_QSTR(MP_QSTR_A6), MP_ROM_PTR(&pin_PA06) },
1111
{ MP_ROM_QSTR(MP_QSTR_A7), MP_ROM_PTR(&pin_PA07) },
1212
{ MP_ROM_QSTR(MP_QSTR_A8), MP_ROM_PTR(&pin_PA08) },
13-
{ MP_ROM_QSTR(MP_QSTR_A9), MP_ROM_PTR(&pin_PA09) }, //USB (shouldn't be used)
14-
{ MP_ROM_QSTR(MP_QSTR_A10), MP_ROM_PTR(&pin_PA10) }, //USB (shouldn't be used)
15-
{ MP_ROM_QSTR(MP_QSTR_A11), MP_ROM_PTR(&pin_PA11) }, //USB (shouldn't be used)
16-
{ MP_ROM_QSTR(MP_QSTR_A12), MP_ROM_PTR(&pin_PA12) }, //USB (shouldn't be used)
13+
{ MP_ROM_QSTR(MP_QSTR_A9), MP_ROM_PTR(&pin_PA09) },
14+
{ MP_ROM_QSTR(MP_QSTR_A10), MP_ROM_PTR(&pin_PA10) },
15+
{ MP_ROM_QSTR(MP_QSTR_A11), MP_ROM_PTR(&pin_PA11) },
16+
{ MP_ROM_QSTR(MP_QSTR_A12), MP_ROM_PTR(&pin_PA12) },
1717
{ MP_ROM_QSTR(MP_QSTR_A13), MP_ROM_PTR(&pin_PA13) },
1818
{ MP_ROM_QSTR(MP_QSTR_A14), MP_ROM_PTR(&pin_PA14) },
1919

ports/stm/supervisor/usb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void init_usb_hardware(void) {
8585
never_reset_pin_number(0, 12);
8686

8787
/* Configure VBUS Pin */
88-
#if (BOARD_NO_VBUS_SENSE)
88+
#if (BOARD_NO_VBUS_SENSE == 0)
8989
GPIO_InitStruct.Pin = GPIO_PIN_9;
9090
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
9191
GPIO_InitStruct.Pull = GPIO_NOPULL;

0 commit comments

Comments
 (0)