Skip to content

Commit

Permalink
Merge pull request #1802 from fanoush/patch-1
Browse files Browse the repository at this point in the history
fix NRF.restart() on SDK14 and up
  • Loading branch information
gfwilliams committed Apr 20, 2020
2 parents 6c927e2 + 6719250 commit c998d8b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions targets/nrf5x/bluetooth.c
Original file line number Diff line number Diff line change
Expand Up @@ -2442,7 +2442,11 @@ void jsble_kill() {

uint32_t err_code;

#if NRF_SD_BLE_API_VERSION < 5
err_code = sd_softdevice_disable();
#else
err_code = nrf_sdh_disable_request();
#endif
APP_ERROR_CHECK(err_code);
}

Expand Down

0 comments on commit c998d8b

Please sign in to comment.