clean up
This commit is contained in:
1 parent
8add8a37b9
commit
fdc0547f3e
5 files changed
+7
-5
No files matched your search
@@ -75,7 +75,7 @@ void BLEGatt::_eventHandler(ble_evt_t* evt)
|
||||
const uint16_t evt_id = evt->header.evt_id;
|
||||
|
||||
// Server Service TODO multiple peripherals
|
||||
if ( evt_conn_hdl == Bluefruit.connHandle() )
|
||||
// if ( evt_conn_hdl == Bluefruit.connHandle() )
|
||||
{
|
||||
if ( evt_id == BLE_GAP_EVT_DISCONNECTED || evt_id == BLE_GAP_EVT_CONNECTED )
|
||||
{
|
||||
|
||||
@@ -264,7 +264,7 @@ void BLEScanner::_eventHandler(ble_evt_t* evt)
|
||||
if ( _filter_msd_en )
|
||||
{
|
||||
uint16_t id;
|
||||
if ( !(parseReportByType(evt_report, BLE_GAP_AD_TYPE_MANUFACTURER_SPECIFIC_DATA, &id, 2) && (id == _filter_msd_id)) ) break;
|
||||
if ( !(parseReportByType(evt_report, BLE_GAP_AD_TYPE_MANUFACTURER_SPECIFIC_DATA, (uint8_t*)&id, 2) && (id == _filter_msd_id)) ) break;
|
||||
}
|
||||
|
||||
ble_gap_evt_adv_report_t* adv_report = (ble_gap_evt_adv_report_t*) rtos_malloc( sizeof(ble_gap_evt_adv_report_t) );
|
||||
|
||||
@@ -34,8 +34,7 @@
|
||||
*/
|
||||
/**************************************************************************/
|
||||
|
||||
#include <Arduino.h>
|
||||
#include "BLEService.h"
|
||||
#include "bluefruit.h"
|
||||
|
||||
BLEService* BLEService::lastService = NULL;
|
||||
|
||||
|
||||
@@ -60,6 +60,8 @@ class BLEService
|
||||
void setUuid(BLEUuid bleuuid);
|
||||
|
||||
virtual err_t begin(void);
|
||||
|
||||
friend class BLEGatt;
|
||||
};
|
||||
|
||||
#endif /* BLESERVICE_H_ */
|
||||
@@ -424,7 +424,8 @@ void AdafruitBluefruit::printInfo(void)
|
||||
Serial.println();
|
||||
|
||||
// List the paried device
|
||||
Serial.printf(title_fmt, "Paired Devices\n");
|
||||
Serial.printf(title_fmt, "Paired Devices");
|
||||
Serial.println();
|
||||
|
||||
NffsDir dir(CFG_BOND_NFFS_DIR);
|
||||
NffsDirEntry dirEntry;
|
||||
|
||||
Reference in new issue
Block a user