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