Skip to content

Commit f65404c

Browse files
committed
Cleanup missed items
1 parent 58630a8 commit f65404c

3 files changed

Lines changed: 12 additions & 14 deletions

File tree

shared-bindings/board/__init__.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ mp_obj_t board_i2c(void) {
6565
MP_DEFINE_CONST_FUN_OBJ_0(board_i2c_obj, board_i2c);
6666

6767

68-
// //| .. function:: SPI()
69-
// //|
70-
// //| Returns the `busio.SPI` object for the board designated SCK, MOSI and MISO pins. It is a
71-
// //| singleton.
72-
// //|
68+
//| .. function:: SPI()
69+
//|
70+
//| Returns the `busio.SPI` object for the board designated SCK, MOSI and MISO pins. It is a
71+
//| singleton.
72+
//|
7373
#if BOARD_SPI
7474
mp_obj_t board_spi(void) {
7575
mp_obj_t singleton = common_hal_board_get_spi();
@@ -89,10 +89,10 @@ mp_obj_t board_spi(void) {
8989
#endif
9090
MP_DEFINE_CONST_FUN_OBJ_0(board_spi_obj, board_spi);
9191

92-
// //| .. function:: UART()
93-
// //|
94-
// //| Returns the `busio.UART` object for the board designated TX and RX pins. It is a singleton.
95-
// //|
92+
//| .. function:: UART()
93+
//|
94+
//| Returns the `busio.UART` object for the board designated TX and RX pins. It is a singleton.
95+
//|
9696
#if BOARD_UART
9797
mp_obj_t board_uart(void) {
9898
mp_obj_t singleton = common_hal_board_get_uart();

supervisor/shared/safe_mode.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ safe_mode_t wait_for_safe_mode_reset(void) {
6666
// Blink on for 100, off for 100, on for 100, off for 100 and on for 200
6767
common_hal_digitalio_digitalinout_set_value(&status_led, diff > 100 && diff / 100 != 2 && diff / 100 != 4);
6868
#endif
69-
diff = 0 - start_ticks;
70-
//diff = ticks_ms - start_ticks;
69+
diff = ticks_ms - start_ticks;
7170
}
7271
#ifdef MICROPY_HW_LED_STATUS
7372
common_hal_digitalio_digitalinout_deinit(&status_led);

supervisor/supervisor.mk

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,8 @@ SRC_SUPERVISOR = \
1010
supervisor/shared/safe_mode.c \
1111
supervisor/shared/stack.c \
1212
supervisor/shared/status_leds.c \
13-
supervisor/shared/safe_mode.c \
14-
supervisor/shared/translate.c \
15-
13+
supervisor/shared/translate.c
14+
1615
ifndef $(NO_USB)
1716
NO_USB = $(wildcard supervisor/usb.c)
1817
endif

0 commit comments

Comments
 (0)