Skip to content

Commit

Permalink
Merge pull request stm32duino#4 from cparata/master
Browse files Browse the repository at this point in the history
Fix issue on Disconnection event
  • Loading branch information
cparata authored Sep 20, 2019
2 parents 7db8cef + d556640 commit d54c075
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/utility/ATT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ void ATTClass::handleData(uint16_t connectionHandle, uint8_t dlen, uint8_t data[
}
}

void ATTClass::removeConnection(uint8_t handle, uint16_t /*reason*/)
void ATTClass::removeConnection(uint16_t handle, uint8_t /*reason*/)
{
int peerIndex = -1;
int peerCount = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/utility/ATT.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class ATTClass {

void handleData(uint16_t connectionHandle, uint8_t dlen, uint8_t data[]);

void removeConnection(uint8_t handle, uint16_t reason);
void removeConnection(uint16_t handle, uint8_t reason);

uint16_t connectionHandle(uint8_t addressType, const uint8_t address[6]) const;
BLERemoteDevice* device(uint8_t addressType, const uint8_t address[6]) const;
Expand Down

0 comments on commit d54c075

Please sign in to comment.