Merge pull request #1601 from philrhinehart/bugfix-cc26xx-ble-events
cc26xx-cc13xx BLE beacon event issue
This commit is contained in:
commit
00d5645d16
1 changed files with 2 additions and 2 deletions
|
@ -256,7 +256,7 @@ PROCESS_THREAD(rf_ble_beacon_process, ev, data)
|
|||
while(1) {
|
||||
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) {
|
||||
PROCESS_EXIT();
|
||||
|
@ -374,7 +374,7 @@ PROCESS_THREAD(rf_ble_beacon_process, ev, data)
|
|||
|
||||
/* Wait unless this is the last burst */
|
||||
if(i < BLE_ADV_MESSAGES - 1) {
|
||||
PROCESS_WAIT_EVENT();
|
||||
PROCESS_WAIT_EVENT_UNTIL(etimer_expired(&ble_adv_et));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue