rename poll() to _poll() for internal usage

This commit is contained in:
hathach committed 2017-01-06 23:50:18 +07:00
1 parent b278db8755
commit d657ea303c
4 files changed
+3 -7

No files matched your search

@@ -68,8 +68,6 @@ void setupAdv(void)
void loop()
{
Bluefruit.poll();
// Toggle both LEDs every 1 second
if ( millis() - ms >= 1000 )
{
@@ -71,8 +71,6 @@ void setupAdv(void)
/**************************************************************************/
void loop(void)
{
Bluefruit.poll();
/* Wait for new data to arrive */
uint8_t len = readPacket(&ble, BLE_READPACKET_TIMEOUT);
if (len == 0) return;
+2 -2
View File
@@ -413,14 +413,14 @@ static void adafruit_bluefruit_task(void* arg)
while (1)
{
Bluefruit.poll();
Bluefruit._poll();
vTaskDelay(1);
//sd_app_evt_wait();
}
}
void AdafruitBluefruit::poll(void)
void AdafruitBluefruit::_poll(void)
{
enum { BLE_STACK_EVT_MSG_BUF_SIZE = (sizeof(ble_evt_t) + (GATT_MTU_SIZE_DEFAULT)) };
+1 -1
View File
@@ -90,7 +90,6 @@ class AdafruitBluefruit
err_t startAdvertising(void);
void stopAdvertising(void);
void poll(void);
// Add service without using BLEService instance
err_t addService(uint16_t uuid16);
@@ -106,6 +105,7 @@ class AdafruitBluefruit
// internal usage only
err_t _registerCharacteristic(BLECharacteristic* chars);
void _poll(void);
private:
BLEDfu _dfu_svc;