Merge pull request #1601 from philrhinehart/bugfix-cc26xx-ble-events
cc26xx-cc13xx BLE beacon event issue
This commit is contained in:
commit
00d5645d16
@ -256,7 +256,7 @@ PROCESS_THREAD(rf_ble_beacon_process, ev, data)
|
|||||||
while(1) {
|
while(1) {
|
||||||
etimer_set(&ble_adv_et, beacond_config.interval);
|
etimer_set(&ble_adv_et, beacond_config.interval);
|
||||||
|
|
||||||
PROCESS_WAIT_EVENT();
|
PROCESS_WAIT_EVENT_UNTIL(etimer_expired(&ble_adv_et) || ev == PROCESS_EVENT_EXIT);
|
||||||
|
|
||||||
if(ev == PROCESS_EVENT_EXIT) {
|
if(ev == PROCESS_EVENT_EXIT) {
|
||||||
PROCESS_EXIT();
|
PROCESS_EXIT();
|
||||||
@ -374,7 +374,7 @@ PROCESS_THREAD(rf_ble_beacon_process, ev, data)
|
|||||||
|
|
||||||
/* Wait unless this is the last burst */
|
/* Wait unless this is the last burst */
|
||||||
if(i < BLE_ADV_MESSAGES - 1) {
|
if(i < BLE_ADV_MESSAGES - 1) {
|
||||||
PROCESS_WAIT_EVENT();
|
PROCESS_WAIT_EVENT_UNTIL(etimer_expired(&ble_adv_et));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user