From 08c0f27f45b09e5571d40fc1981d4076af0c7c92 Mon Sep 17 00:00:00 2001 From: hathach Date: Fri, 8 May 2020 12:44:41 +0700 Subject: [PATCH] correct app address in APP_ASKS_FOR_SINGLE_TAP_RESET() --- src/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 9655d03..a993966 100644 --- a/src/main.c +++ b/src/main.c @@ -119,8 +119,7 @@ void usb_teardown(void); // Allow for using reset button essentially to swap between application and bootloader. // This is controlled by a flag in the app and is the behavior of CPX and all Arcade boards when using MakeCode. -// TODO correct USER_FLASH_START = APP after SoftDevice -#define APP_ASKS_FOR_SINGLE_TAP_RESET() (*((uint32_t*)(USER_FLASH_START + 0x200)) == 0x87eeb07c) +#define APP_ASKS_FOR_SINGLE_TAP_RESET() (*((uint32_t*)(DFU_BANK_0_REGION_START + 0x200)) == 0x87eeb07c) // These value must be the same with one in dfu_transport_ble.c #define BLEGAP_EVENT_LENGTH 6