Skip to content
Snippets Groups Projects
Commit d9c4db50 authored by schneider's avatar schneider
Browse files

change(ble): Don't report every successful notify/indicate to the console

parent c1392707
No related branches found
No related tags found
1 merge request!446Initial MicroPython BLE support (GATTS)
......@@ -904,8 +904,10 @@ static void BleHandler(wsfEventMask_t event, wsfMsgHdr_t *pMsg)
}
else if (pMsg->event >= ATT_CBACK_START && pMsg->event <= ATT_CBACK_END)
{
//if(!(pMsg->event == ATTS_HANDLE_VALUE_CNF && pMsg->status == ATT_SUCCESS) )
LOG_INFO("ble", "Ble got evt %d (%s): %d", pMsg->event, att_events[pMsg->event - ATT_CBACK_START], pMsg->status);
/* Don't spam the console with successful notfication/indications */
if (!(pMsg->event == ATTS_HANDLE_VALUE_CNF && pMsg->status == ATT_SUCCESS)) {
LOG_INFO("ble", "Ble got evt %d (%s): %d %d", pMsg->event, att_events[pMsg->event - ATT_CBACK_START], ((bleMsg_t *)pMsg)->att.handle, pMsg->status);
}
/* process discovery-related ATT messages */
AppDiscProcAttMsg((attEvt_t *) pMsg);
ble_epic_att_api_event((attEvt_t *)pMsg);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment