Skip to content

Commit ea33a85

Browse files
Ashok RaoAshok Rao
authored andcommitted
Incorporating review comments
1 parent bd43bed commit ea33a85

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

BLE_BatteryLevel/source/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static const uint16_t uuid16_list[] = {GattService::UUID_BATTERY_SERVICE};
2828
static uint8_t batteryLevel = 50;
2929
static BatteryService* batteryServicePtr;
3030

31-
static EventQueue eventQueue(EVENTS_QUEUE_SIZE);
31+
static EventQueue eventQueue(/* event count */ 16 * EVENTS_EVENT_SIZE);
3232

3333
void disconnectionCallback(const Gap::DisconnectionCallbackParams_t *params)
3434
{

BLE_Beacon/source/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
static iBeacon* ibeaconPtr;
2323

24-
static EventQueue eventQueue(EVENTS_QUEUE_SIZE);
24+
static EventQueue eventQueue(/* event count */ 4 * EVENTS_EVENT_SIZE);
2525

2626
/**
2727
* This function is called when the ble initialization process has failled

BLE_Button/source/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
DigitalOut led1(LED1, 1);
2424
InterruptIn button(BLE_BUTTON_PIN_NAME);
2525

26-
static EventQueue eventQueue(EVENTS_QUEUE_SIZE);
26+
static EventQueue eventQueue(/* event count */ 10 * EVENTS_EVENT_SIZE);
2727

2828
const static char DEVICE_NAME[] = "Button";
2929
static const uint16_t uuid16_list[] = {ButtonService::BUTTON_SERVICE_UUID};

BLE_EddystoneObserver/source/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
static const int URI_MAX_LENGTH = 18; // Maximum size of service data in ADV packets
2222

23-
static EventQueue eventQueue(EVENTS_QUEUE_SIZE);
23+
static EventQueue eventQueue(/* event count */ 16 * EVENTS_EVENT_SIZE);
2424

2525
DigitalOut led1(LED1, 1);
2626

BLE_EddystoneService/source/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ static const PowerLevels_t defaultAdvPowerLevels = {-47, -33, -21, -13};
3939
/* Values for radio power levels, provided by manufacturer. */
4040
static const PowerLevels_t radioPowerLevels = {-30, -16, -4, 4};
4141

42-
static EventQueue eventQueue(EVENTS_QUEUE_SIZE);
42+
static EventQueue eventQueue(/* event count */ 16 * EVENTS_EVENT_SIZE);
4343

4444
DigitalOut led(LED1, 1);
4545

BLE_GAPButton/source/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const char DEVICE_NAME[] = "GAPButton";
3131
#define GAPButtonUUID 0xAA00
3232
const uint16_t uuid16_list[] = {GAPButtonUUID};
3333

34-
static EventQueue eventQueue(EVENTS_QUEUE_SIZE);
34+
static EventQueue eventQueue(/* event count */ 16 * EVENTS_EVENT_SIZE);
3535

3636
void print_error(ble_error_t error, const char* msg)
3737
{

BLE_HeartRate/source/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ static const uint16_t uuid16_list[] = {GattService::UUID_HEART_RATE_SERVICE};
2828
static uint8_t hrmCounter = 100; // init HRM to 100bps
2929
static HeartRateService *hrServicePtr;
3030

31-
static EventQueue eventQueue(EVENTS_QUEUE_SIZE);
31+
static EventQueue eventQueue(/* event count */ 16 * EVENTS_EVENT_SIZE);
3232

3333
void disconnectionCallback(const Gap::DisconnectionCallbackParams_t *params)
3434
{

BLE_LED/source/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ DigitalOut actuatedLED(LED2, 0);
2525
const static char DEVICE_NAME[] = "LED";
2626
static const uint16_t uuid16_list[] = {LEDService::LED_SERVICE_UUID};
2727

28-
static EventQueue eventQueue(EVENTS_QUEUE_SIZE);
28+
static EventQueue eventQueue(/* event count */ 10 * EVENTS_EVENT_SIZE);
2929

3030
LEDService *ledServicePtr;
3131

BLE_LEDBlinker/source/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ static DiscoveredCharacteristic ledCharacteristic;
2525
static bool triggerLedCharacteristic;
2626
static const char PEER_NAME[] = "LED";
2727

28-
static EventQueue eventQueue(EVENTS_QUEUE_SIZE);
28+
static EventQueue eventQueue(/* event count */ 16 * EVENTS_EVENT_SIZE);
2929

3030
void periodicCallback(void) {
3131
alivenessLED = !alivenessLED; /* Do blinky on LED1 while we're waiting for BLE events */

BLE_Thermometer/source/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ static const uint16_t uuid16_list[] = {GattService::UUID_HEALTH_THERMOMET
2727
static float currentTemperature = 39.6;
2828
static HealthThermometerService *thermometerServicePtr;
2929

30-
static EventQueue eventQueue(EVENTS_QUEUE_SIZE);
30+
static EventQueue eventQueue(/* event count */ 16 * EVENTS_EVENT_SIZE);
3131

3232
/* Restart Advertising on disconnection*/
3333
void disconnectionCallback(const Gap::DisconnectionCallbackParams_t *)

0 commit comments

Comments
 (0)