Compare commits

...

2 Commits

Author SHA1 Message Date
GUVWAF
71a90b3b78 Fix 'router' not in scope error 2024-11-08 22:22:43 +01:00
GUVWAF
be73b099a7 Fix cppcheck error 2024-11-08 22:14:25 +01:00
2 changed files with 4 additions and 1 deletions

View File

@ -112,6 +112,8 @@ bool PacketHistory::wasRelayer(const uint8_t relayer, const uint32_t id, const N
PacketRecord r;
r.id = id;
r.sender = sender;
r.rxTimeMsec = 0;
r.next_hop = 0;
auto found = recentPackets.find(r);
if (found == recentPackets.end()) {

View File

@ -12,6 +12,7 @@
#include "PhoneAPI.h"
#include "PowerFSM.h"
#include "RadioInterface.h"
#include "Router.h"
#include "TypeConversions.h"
#include "main.h"
#include "xmodem.h"
@ -636,4 +637,4 @@ int PhoneAPI::onNotify(uint32_t newValue)
}
return timeout ? -1 : 0; // If we timed out, MeshService should stop iterating through observers as we just removed one
}
}