Skip to content

Commit 27d5fcf

Browse files
committed
Remove log print in disconnect timer callback.
Timer callback runs in ISR context, so log printing is inappropriate.
1 parent 4d5fcea commit 27d5fcf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/NimBLEClient.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,10 @@ NimBLEClient::~NimBLEClient() {
100100
* be called to reset the host in the case of a stalled controller.
101101
*/
102102
void NimBLEClient::dcTimerCb(ble_npl_event *event) {
103-
NimBLEClient *pClient = (NimBLEClient*)event->arg;
103+
/* NimBLEClient *pClient = (NimBLEClient*)event->arg;
104104
NIMBLE_LOGC(LOG_TAG, "Timed out disconnecting from %s - resetting host",
105105
std::string(pClient->getPeerAddress()).c_str());
106+
*/
106107
ble_hs_sched_reset(BLE_HS_ECONTROLLER);
107108
}
108109

0 commit comments

Comments
 (0)