my DSR changes broke acks for flood routing also. Fix #146

This commit is contained in:
geeksville
2020-05-25 11:55:42 -07:00
parent 03999e9d56
commit f4b1678535
3 changed files with 30 additions and 17 deletions

View File

@@ -19,8 +19,9 @@ ErrorCode FloodingRouter::send(MeshPacket *p)
bool FloodingRouter::shouldFilterReceived(const MeshPacket *p)
{
if (wasSeenRecently(p)) {
DEBUG_MSG("Ignoring incoming msg, because we've already seen it\n");
if (wasSeenRecently(p)) { // Note: this will also add a recent packet record
DEBUG_MSG("Ignoring incoming msg, because we've already seen it: fr=0x%x,to=0x%x,id=%d,hop_limit=%d\n", p->from, p->to,
p->id, p->hop_limit);
return true;
}