update LinkLoss service due to recent changes in APIs

master
Rohit Grover 2015-09-29 12:58:14 +01:00
parent 91239f6b7c
commit d43b1d1a8b
1 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ public:
ble.addService(linkLossService);
serviceAdded = true;
ble.addToDisconnectionCallChain(this, &LinkLossService::onDisconnectionFilter);
ble.onDisconnection(this, &LinkLossService::onDisconnectionFilter);
ble.onDataWritten(this, &LinkLossService::onDataWritten);
}
@ -86,7 +86,7 @@ protected:
}
}
void onDisconnectionFilter(void) {
void onDisconnectionFilter(const Gap::DisconnectionCallbackParams_t *params) {
if (alertLevel != NO_ALERT) {
callback(alertLevel);
}