diff --git a/cores/nRF5/wiring.c b/cores/nRF5/wiring.c index f6758ac4..1fa72b13 100644 --- a/cores/nRF5/wiring.c +++ b/cores/nRF5/wiring.c @@ -25,7 +25,7 @@ extern "C" { #endif -#define BOOTLOADER_DFU_START_SERIAL 0x4e +#define BOOTLOADER_DFU_SERIAL_MAGIC 0x4e void init( void ) { @@ -44,7 +44,7 @@ void init( void ) void enterSerialDFU(void) { - NRF_POWER->GPREGRET = BOOTLOADER_DFU_START_SERIAL; + NRF_POWER->GPREGRET = BOOTLOADER_DFU_SERIAL_MAGIC; NVIC_SystemReset(); }