From a635d46b1a3d16695afa932f53842525eab638e3 Mon Sep 17 00:00:00 2001 From: Hierophect Date: Sun, 4 Aug 2019 17:06:51 -0400 Subject: [PATCH] Fix merge related issues --- .gitmodules | 1 - lib/tinyusb | 2 +- ports/stm32f4/supervisor/internal_flash.c | 2 -- ports/stm32f4/supervisor/port.c | 6 ------ supervisor/shared/usb/usb_msc_flash.c | 2 +- 5 files changed, 2 insertions(+), 11 deletions(-) diff --git a/.gitmodules b/.gitmodules index 2a97c81fcd..7b57cab547 100644 --- a/.gitmodules +++ b/.gitmodules @@ -77,7 +77,6 @@ path = lib/tinyusb url = https://github.com/hathach/tinyusb.git branch = develop - ignore = dirty [submodule "tools/huffman"] path = tools/huffman url = https://github.com/tannewt/huffman.git diff --git a/lib/tinyusb b/lib/tinyusb index 97e2629d64..1ee9ef4f2b 160000 --- a/lib/tinyusb +++ b/lib/tinyusb @@ -1 +1 @@ -Subproject commit 97e2629d647584681b2883f2081fa2cddb3d61cc +Subproject commit 1ee9ef4f2b7c6acfab6c398a4f57ca22036958f7 diff --git a/ports/stm32f4/supervisor/internal_flash.c b/ports/stm32f4/supervisor/internal_flash.c index fa776ae1de..e052369481 100644 --- a/ports/stm32f4/supervisor/internal_flash.c +++ b/ports/stm32f4/supervisor/internal_flash.c @@ -39,8 +39,6 @@ /*------------------------------------------------------------------*/ /* Internal Flash API *------------------------------------------------------------------*/ -static inline uint32_t lba2addr(uint32_t block) { -} void supervisor_flash_init(void) { } diff --git a/ports/stm32f4/supervisor/port.c b/ports/stm32f4/supervisor/port.c index af4d1b8d84..6030547acf 100644 --- a/ports/stm32f4/supervisor/port.c +++ b/ports/stm32f4/supervisor/port.c @@ -35,12 +35,6 @@ #include "stm32f4xx_hal.h" -//#include "shared-bindings/rtc/__init__.h" - -static void power_warning_handler(void) { - reset_into_safe_mode(BROWNOUT); -} - safe_mode_t port_init(void) { HAL_Init(); diff --git a/supervisor/shared/usb/usb_msc_flash.c b/supervisor/shared/usb/usb_msc_flash.c index a1ab464547..205cb7b500 100644 --- a/supervisor/shared/usb/usb_msc_flash.c +++ b/supervisor/shared/usb/usb_msc_flash.c @@ -197,7 +197,7 @@ bool tud_msc_test_unit_ready_cb(uint8_t lun) { // Invoked when received Start Stop Unit command // - Start = 0 : stopped power mode, if load_eject = 1 : unload disk storage // - Start = 1 : active mode, if load_eject = 1 : load disk storage -void tud_msc_start_stop_cb(uint8_t lun, uint8_t power_condition, bool start, bool load_eject) { +bool tud_msc_start_stop_cb(uint8_t lun, uint8_t power_condition, bool start, bool load_eject) { if (load_eject) { if (lun > 1) { return false;