Skip to content

Commit

Permalink
Fix Chameleon crashes in BLE pairing
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxushka authored Aug 30, 2023
1 parent 5f530ad commit 51b15ea
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions firmware/application/src/ble_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -708,11 +708,11 @@ void saadc_event_handler(nrf_drv_saadc_evt_t const *p_event) {
// if battery service is notification enable, we can send msg to device.
err_code = ble_bas_battery_level_update(&m_bas, percentage_batt_lvl, BLE_CONN_HANDLE_ALL);
if ((err_code != NRF_SUCCESS) &&
(err_code != NRF_ERROR_INVALID_STATE) &&
(err_code != NRF_ERROR_RESOURCES) &&
(err_code != NRF_ERROR_BUSY) &&
(err_code != BLE_ERROR_GATTS_SYS_ATTR_MISSING)
) {
(err_code != NRF_ERROR_INVALID_STATE) &&
(err_code != NRF_ERROR_RESOURCES) &&
(err_code != NRF_ERROR_BUSY) &&
(err_code != NRF_ERROR_FORBIDDEN) &&
(err_code != BLE_ERROR_GATTS_SYS_ATTR_MISSING)) {
APP_ERROR_HANDLER(err_code);
}

Expand Down

0 comments on commit 51b15ea

Please sign in to comment.