From c9923b428209c868fa2001418e23daaae56f211a Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Thu, 28 Jun 2012 01:33:31 -0300 Subject: [PATCH] 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. --- fw/antorcha.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fw/antorcha.c b/fw/antorcha.c index 02b98da..2d54f57 100644 --- a/fw/antorcha.c +++ b/fw/antorcha.c @@ -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();