correct app address in APP_ASKS_FOR_SINGLE_TAP_RESET()

This commit is contained in:
hathach
2020-05-08 12:44:41 +07:00
parent 5ed4d509f5
commit 08c0f27f45
+1 -2
View File
@@ -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