we now always listen before transmit - even if we have just completed a packet

This commit is contained in:
geeksville
2020-05-02 08:29:51 -07:00
parent 4735b3ff5b
commit 2ad314f150
6 changed files with 115 additions and 53 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ void Router::loop()
ErrorCode Router::send(MeshPacket *p)
{
if (iface) {
DEBUG_MSG("Sending packet via interface fr=0x%x,to=0x%x,id=%d\n", p->from, p->to, p->id);
// DEBUG_MSG("Sending packet via interface fr=0x%x,to=0x%x,id=%d\n", p->from, p->to, p->id);
return iface->send(p);
} else {
DEBUG_MSG("Dropping packet - no interfaces - fr=0x%x,to=0x%x,id=%d\n", p->from, p->to, p->id);