mirror of
git://projects.qi-hardware.com/antorcha.git
synced 2024-11-22 12:52:27 +02:00
fw/antorcha.c (main): allow a new sweep to preempt an active sweep
Waiting until the current sweep finished could delay the next sweep (without cancelling it), confusing the timing.
This commit is contained in:
parent
69ee8dfec7
commit
c9923b4282
@ -136,7 +136,7 @@ int main(void)
|
||||
got = rf_recv(buf, sizeof(buf));
|
||||
if (got > 2)
|
||||
dispatch(buf, got-2, protos);
|
||||
if (wake && !sweeping) {
|
||||
if (wake) {
|
||||
wake = 0;
|
||||
if (state == LEFT)
|
||||
submit_fwd_sweep();
|
||||
|
Loading…
Reference in New Issue
Block a user