Skip to content

Commit 08c0f27

Browse files
committed
correct app address in APP_ASKS_FOR_SINGLE_TAP_RESET()
1 parent 5ed4d50 commit 08c0f27

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,7 @@ void usb_teardown(void);
119119

120120
// Allow for using reset button essentially to swap between application and bootloader.
121121
// This is controlled by a flag in the app and is the behavior of CPX and all Arcade boards when using MakeCode.
122-
// TODO correct USER_FLASH_START = APP after SoftDevice
123-
#define APP_ASKS_FOR_SINGLE_TAP_RESET() (*((uint32_t*)(USER_FLASH_START + 0x200)) == 0x87eeb07c)
122+
#define APP_ASKS_FOR_SINGLE_TAP_RESET() (*((uint32_t*)(DFU_BANK_0_REGION_START + 0x200)) == 0x87eeb07c)
124123

125124
// These value must be the same with one in dfu_transport_ble.c
126125
#define BLEGAP_EVENT_LENGTH 6

0 commit comments

Comments
 (0)