Skip to content

Commit

Permalink
Merge branch 'pr-67'
Browse files Browse the repository at this point in the history
  • Loading branch information
alranel committed May 7, 2022
2 parents 82ffddc + 2e46581 commit 18c896d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/utility/ATT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,12 @@ bool ATTClass::disconnect()
}

numDisconnects++;

BLEDevice bleDevice(_peers[i].addressType, _peers[i].address);

if (_eventHandlers[BLEDisconnected]) {
_eventHandlers[BLEDisconnected](bleDevice);
}

_peers[i].connectionHandle = 0xffff;
_peers[i].role = 0x00;
Expand Down

0 comments on commit 18c896d

Please sign in to comment.