fix complication error
but still not started correctly with new sd_ble_enable
This commit is contained in:
1 parent
4bdc36279b
commit
4da3f17e5f
1 file changed
+2
-2
@@ -142,8 +142,8 @@ static void bledfu_control_wr_authorize_cb(BLECharacteristic& chr, ble_gatts_evt
|
||||
|
||||
// Set GPReset to DFU OTA
|
||||
enum { DFU_OTA_MAGIC = 0xB1 };
|
||||
sd_power_gpregret_clr(0xFF);
|
||||
VERIFY_STATUS( sd_power_gpregret_set(DFU_OTA_MAGIC), RETURN_VOID);
|
||||
sd_power_gpregret_clr(0, 0xFF);
|
||||
VERIFY_STATUS( sd_power_gpregret_set(0, DFU_OTA_MAGIC), RETURN_VOID);
|
||||
VERIFY_STATUS( sd_softdevice_disable(), RETURN_VOID );
|
||||
|
||||
// Disable Systick to prevent Interrupt happens after changing vector table
|
||||
|
||||
Reference in new issue
Block a user