fixed handling of POLL flags on packet radio interface

(was not calling watch() when changing them).
This commit is contained in:
gardners 2013-02-05 15:28:41 +10:30 committed by Jeremy Lakeman
parent e20cfdb59d
commit e82d2e73da

View File

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