diff options
Diffstat (limited to 'sdk-config/sdk')
-rw-r--r-- | sdk-config/sdk/libraries/bootloader_dfu/dfu_transport_ble.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sdk-config/sdk/libraries/bootloader_dfu/dfu_transport_ble.c b/sdk-config/sdk/libraries/bootloader_dfu/dfu_transport_ble.c index f17e936..9ede19d 100644 --- a/sdk-config/sdk/libraries/bootloader_dfu/dfu_transport_ble.c +++ b/sdk-config/sdk/libraries/bootloader_dfu/dfu_transport_ble.c @@ -575,18 +575,19 @@ static void on_dfu_evt(ble_dfu_t * p_dfu, ble_dfu_evt_t * p_evt) case BLE_DFU_VALIDATE: err_code = dfu_image_validate(); + ble_dfu_response_send(p_dfu, 0x55, err_code+0x80); + // Translate the err_code returned by the above function to DFU Response Value. resp_val = nrf_err_code_translate(err_code, BLE_DFU_VALIDATE_PROCEDURE); err_code = ble_dfu_response_send(p_dfu, BLE_DFU_VALIDATE_PROCEDURE, resp_val); APP_ERROR_CHECK(err_code); + break; case BLE_DFU_ACTIVATE_N_RESET: -#if 0 err_code = dfu_transport_close(); APP_ERROR_CHECK(err_code); -#endif // With the S110 Flash API it is safe to initiate the activate before connection is // fully closed. |