mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-11-22 05:00:55 +01:00
Remove log print in disconnect timer callback.
Timer callback runs in ISR context, so log printing is inappropriate.
This commit is contained in:
parent
026864e031
commit
310c5f7c84
1 changed files with 2 additions and 1 deletions
|
@ -100,9 +100,10 @@ NimBLEClient::~NimBLEClient() {
|
||||||
* be called to reset the host in the case of a stalled controller.
|
* be called to reset the host in the case of a stalled controller.
|
||||||
*/
|
*/
|
||||||
void NimBLEClient::dcTimerCb(ble_npl_event *event) {
|
void NimBLEClient::dcTimerCb(ble_npl_event *event) {
|
||||||
NimBLEClient *pClient = (NimBLEClient*)event->arg;
|
/* NimBLEClient *pClient = (NimBLEClient*)event->arg;
|
||||||
NIMBLE_LOGC(LOG_TAG, "Timed out disconnecting from %s - resetting host",
|
NIMBLE_LOGC(LOG_TAG, "Timed out disconnecting from %s - resetting host",
|
||||||
std::string(pClient->getPeerAddress()).c_str());
|
std::string(pClient->getPeerAddress()).c_str());
|
||||||
|
*/
|
||||||
ble_hs_sched_reset(BLE_HS_ECONTROLLER);
|
ble_hs_sched_reset(BLE_HS_ECONTROLLER);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue