From d9c4db50ffcb75b030041e4ff4387445cbab8801 Mon Sep 17 00:00:00 2001 From: schneider <schneider@blinkenlichts.net> Date: Tue, 26 Jan 2021 09:59:38 +0100 Subject: [PATCH] change(ble): Don't report every successful notify/indicate to the console --- epicardium/ble/ble_main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/epicardium/ble/ble_main.c b/epicardium/ble/ble_main.c index ba9feaa02..7e96fc7cc 100644 --- a/epicardium/ble/ble_main.c +++ b/epicardium/ble/ble_main.c @@ -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); -- GitLab