This commit is contained in:
hathach committed 2017-03-16 21:14:13 +07:00
1 parent fd386cce43
commit feb63dc062
1 file changed
+2 -2
+2 -2
View File
@@ -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();
}