Skip to content

Commit e3374b0

Browse files
committed
sys/bluetooth: use until instead of while not
Minor code simplification.
1 parent 6dbb17e commit e3374b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pbio/sys/bluetooth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ PROCESS_THREAD(pbsys_bluetooth_process, ev, data) {
113113

114114
pbdrv_bluetooth_power_on(true);
115115

116-
PROCESS_WAIT_WHILE(!pbdrv_bluetooth_is_ready());
116+
PROCESS_WAIT_UNTIL(pbdrv_bluetooth_is_ready());
117117

118118
pbdrv_bluetooth_start_advertising();
119119

0 commit comments

Comments
 (0)