Cleanup missed items

This commit is contained in:
Hierophect 2019-07-22 13:04:31 -04:00
parent 58630a844a
commit f65404cc05
3 changed files with 12 additions and 14 deletions

View File

@ -65,11 +65,11 @@ mp_obj_t board_i2c(void) {
MP_DEFINE_CONST_FUN_OBJ_0(board_i2c_obj, board_i2c);
// //| .. function:: SPI()
// //|
// //| Returns the `busio.SPI` object for the board designated SCK, MOSI and MISO pins. It is a
// //| singleton.
// //|
//| .. function:: SPI()
//|
//| Returns the `busio.SPI` object for the board designated SCK, MOSI and MISO pins. It is a
//| singleton.
//|
#if BOARD_SPI
mp_obj_t board_spi(void) {
mp_obj_t singleton = common_hal_board_get_spi();
@ -89,10 +89,10 @@ mp_obj_t board_spi(void) {
#endif
MP_DEFINE_CONST_FUN_OBJ_0(board_spi_obj, board_spi);
// //| .. function:: UART()
// //|
// //| Returns the `busio.UART` object for the board designated TX and RX pins. It is a singleton.
// //|
//| .. function:: UART()
//|
//| Returns the `busio.UART` object for the board designated TX and RX pins. It is a singleton.
//|
#if BOARD_UART
mp_obj_t board_uart(void) {
mp_obj_t singleton = common_hal_board_get_uart();

View File

@ -66,8 +66,7 @@ safe_mode_t wait_for_safe_mode_reset(void) {
// Blink on for 100, off for 100, on for 100, off for 100 and on for 200
common_hal_digitalio_digitalinout_set_value(&status_led, diff > 100 && diff / 100 != 2 && diff / 100 != 4);
#endif
diff = 0 - start_ticks;
//diff = ticks_ms - start_ticks;
diff = ticks_ms - start_ticks;
}
#ifdef MICROPY_HW_LED_STATUS
common_hal_digitalio_digitalinout_deinit(&status_led);

View File

@ -10,9 +10,8 @@ SRC_SUPERVISOR = \
supervisor/shared/safe_mode.c \
supervisor/shared/stack.c \
supervisor/shared/status_leds.c \
supervisor/shared/safe_mode.c \
supervisor/shared/translate.c \
supervisor/shared/translate.c
ifndef $(NO_USB)
NO_USB = $(wildcard supervisor/usb.c)
endif