Don't resend ACK every time you receive the packet

This commit is contained in:
GUVWAF
2022-12-27 14:32:07 +01:00
parent 3b9b33a5ee
commit b4735f4224
6 changed files with 10 additions and 18 deletions

View File

@@ -17,7 +17,7 @@ ErrorCode FloodingRouter::send(MeshPacket *p)
return Router::send(p);
}
bool FloodingRouter::shouldFilterReceived(MeshPacket *p)
bool FloodingRouter::shouldFilterReceived(const MeshPacket *p)
{
if (wasSeenRecently(p)) { // Note: this will also add a recent packet record
printPacket("Ignoring incoming msg, because we've already seen it", p);