Fix crash when the computer disconnect from the BLE connection.

This commit is contained in:
JF 2020-04-04 17:41:21 +02:00
parent 211e9795e0
commit d564b3cf15

View file

@ -552,7 +552,6 @@ void on_ans_c_evt(ble_ans_c_evt_t * p_evt)
NRF_LOG_INFO("[ANS] ANS : disconnecting from server"); NRF_LOG_INFO("[ANS] ANS : disconnecting from server");
m_new_alert_state = ALERT_NOTIFICATION_DISABLED; m_new_alert_state = ALERT_NOTIFICATION_DISABLED;
m_unread_alert_state = ALERT_NOTIFICATION_DISABLED; m_unread_alert_state = ALERT_NOTIFICATION_DISABLED;
APP_ERROR_CHECK(err_code);
break; // BLE_ANS_C_EVT_DISCONN_COMPLETE break; // BLE_ANS_C_EVT_DISCONN_COMPLETE
default: default: