From e82d2e73da1182462958563e20c80ed64d571b3d Mon Sep 17 00:00:00 2001 From: gardners Date: Tue, 5 Feb 2013 15:28:41 +1030 Subject: [PATCH] fixed handling of POLL flags on packet radio interface (was not calling watch() when changing them). --- overlay_packetradio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/overlay_packetradio.c b/overlay_packetradio.c index 2dd58e17..daa88ffc 100644 --- a/overlay_packetradio.c +++ b/overlay_packetradio.c @@ -100,11 +100,13 @@ void overlay_packetradio_poll(struct sched_ent *alarm) if (config.debug.packetradio) DEBUGF("Failed to write any data"); } alarm->poll.revents&=~POLLOUT; + watch(alarm); if (interface->tx_bytes_pending>0) { // more to write, so keep POLLOUT flag } else { // nothing more to write, so clear POLLOUT flag alarm->poll.events&=~POLLOUT; + watch(alarm); } } }