1
0
mirror of git://projects.qi-hardware.com/antorcha.git synced 2024-11-01 09:24:05 +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:
Werner Almesberger 2012-06-28 01:33:31 -03:00
parent 69ee8dfec7
commit c9923b4282

View File

@ -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();