clean up
This commit is contained in:
5 files changed
+6
-6
No files matched your search
@@ -131,7 +131,7 @@ void BLECentral::clearBonds(void)
|
||||
* Event is forwarded from Bluefruit Poll() method
|
||||
* @param event
|
||||
*/
|
||||
void BLECentral::_event_handler(ble_evt_t* evt)
|
||||
void BLECentral::_eventHandler(ble_evt_t* evt)
|
||||
{
|
||||
// conn handle has fixed offset regardless of event type
|
||||
const uint16_t conn_hdl = evt->evt.common_evt.conn_handle;
|
||||
|
||||
@@ -80,7 +80,7 @@ class BLECentral
|
||||
private:
|
||||
ble_gap_conn_params_t _conn_param;
|
||||
|
||||
void _event_handler(ble_evt_t* evt);
|
||||
void _eventHandler(ble_evt_t* evt);
|
||||
|
||||
friend class AdafruitBluefruit;
|
||||
};
|
||||
|
||||
@@ -196,7 +196,7 @@ uint16_t BLEDiscovery::_discoverDescriptor(uint16_t conn_handle, ble_gattc_evt_d
|
||||
}
|
||||
|
||||
|
||||
void BLEDiscovery::_event_handler(ble_evt_t* evt)
|
||||
void BLEDiscovery::_eventHandler(ble_evt_t* evt)
|
||||
{
|
||||
ble_gattc_evt_t* gattc = &evt->evt.gattc_evt;
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ class BLEDiscovery
|
||||
AdaMsg _adamsg;
|
||||
bool _begun;
|
||||
|
||||
void _event_handler(ble_evt_t* evt);
|
||||
void _eventHandler(ble_evt_t* evt);
|
||||
|
||||
public:
|
||||
BLEDiscovery(void);
|
||||
|
||||
@@ -838,12 +838,12 @@ void AdafruitBluefruit::_ble_handler(ble_evt_t* evt)
|
||||
if (evt_conn_hdl != _conn_hdl ||
|
||||
evt_conn_hdl == BLE_CONN_HANDLE_INVALID)
|
||||
{
|
||||
Central._event_handler(evt);
|
||||
Central._eventHandler(evt);
|
||||
}
|
||||
}
|
||||
|
||||
// Discovery Event Handler
|
||||
if ( Discovery.begun() ) Discovery._event_handler(evt);
|
||||
if ( Discovery.begun() ) Discovery._eventHandler(evt);
|
||||
|
||||
// GATTs characteristics event handler
|
||||
Gatt._eventHandler(evt);
|
||||
|
||||
Reference in new issue
Block a user