microbit-dal: fixed a warning in MicroBitBLEManager.cpp

This commit is contained in:
James Devine 2016-04-18 15:25:30 +01:00
parent 44b3daeca2
commit c844e6104a
1 changed files with 3 additions and 3 deletions

View File

@ -110,7 +110,7 @@ static void storeSystemAttributes(Gap::Handle_t handle)
static void bleDisconnectionCallback(const Gap::DisconnectionCallbackParams_t *reason)
{
MicroBitEvent(MICROBIT_ID_BLE,MICROBIT_BLE_EVT_DISCONNECTED);
storeSystemAttributes(reason->handle);
if (manager)
@ -120,7 +120,7 @@ static void bleDisconnectionCallback(const Gap::DisconnectionCallbackParams_t *r
/**
* Callback when a BLE connection is established.
*/
static void bleConnectionCallback(const Gap::ConnectionCallbackParams_t *params)
static void bleConnectionCallback(const Gap::ConnectionCallbackParams_t*)
{
MicroBitEvent(MICROBIT_ID_BLE,MICROBIT_BLE_EVT_CONNECTED);
}
@ -277,7 +277,7 @@ void MicroBitBLEManager::init(ManagedString deviceName, ManagedString serialNumb
// automatically restart advertising after a device disconnects.
ble->gap().onDisconnection(bleDisconnectionCallback);
ble->gattServer().onSysAttrMissing(bleSysAttrMissingCallback);
// generate an event when a Bluetooth connection is established
ble->gap().onConnection(bleConnectionCallback);