mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-15 01:22:04 +00:00
less logspam
This commit is contained in:
parent
49a13bbfd3
commit
82c1752d85
@ -314,7 +314,7 @@ void MeshService::sendOurPosition(NodeNum dest, bool wantReplies)
|
|||||||
|
|
||||||
int MeshService::onGPSChanged(void *unused)
|
int MeshService::onGPSChanged(void *unused)
|
||||||
{
|
{
|
||||||
DEBUG_MSG("got gps notify\n");
|
// DEBUG_MSG("got gps notify\n");
|
||||||
|
|
||||||
// Update our local node info with our position (even if we don't decide to update anyone else)
|
// Update our local node info with our position (even if we don't decide to update anyone else)
|
||||||
MeshPacket *p = allocForSending();
|
MeshPacket *p = allocForSending();
|
||||||
|
@ -99,7 +99,7 @@ bool FloodingRouter::wasSeenRecently(const MeshPacket *p)
|
|||||||
BroadcastRecord &r = recentBroadcasts[i];
|
BroadcastRecord &r = recentBroadcasts[i];
|
||||||
|
|
||||||
if ((now - r.rxTimeMsec) >= FLOOD_EXPIRE_TIME) {
|
if ((now - r.rxTimeMsec) >= FLOOD_EXPIRE_TIME) {
|
||||||
DEBUG_MSG("Deleting old broadcast record %d\n", i);
|
// DEBUG_MSG("Deleting old broadcast record %d\n", i);
|
||||||
recentBroadcasts.erase(recentBroadcasts.begin() + i); // delete old record
|
recentBroadcasts.erase(recentBroadcasts.begin() + i); // delete old record
|
||||||
} else {
|
} else {
|
||||||
if (r.id == p->id && r.sender == p->from) {
|
if (r.id == p->id && r.sender == p->from) {
|
||||||
|
Loading…
Reference in New Issue
Block a user