mirror of
git://projects.qi-hardware.com/antorcha.git
synced 2025-04-21 12:27:27 +03: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:
@@ -136,7 +136,7 @@ int main(void)
|
|||||||
got = rf_recv(buf, sizeof(buf));
|
got = rf_recv(buf, sizeof(buf));
|
||||||
if (got > 2)
|
if (got > 2)
|
||||||
dispatch(buf, got-2, protos);
|
dispatch(buf, got-2, protos);
|
||||||
if (wake && !sweeping) {
|
if (wake) {
|
||||||
wake = 0;
|
wake = 0;
|
||||||
if (state == LEFT)
|
if (state == LEFT)
|
||||||
submit_fwd_sweep();
|
submit_fwd_sweep();
|
||||||
|
|||||||
Reference in New Issue
Block a user