From e1ec3649cbc2e5a8e8304b2ecd0d7b7634d65e7a Mon Sep 17 00:00:00 2001 From: root <165865819+brianshea2@users.noreply.github.com> Date: Tue, 4 Jun 2024 16:31:37 +0000 Subject: [PATCH] ignore MapReport spam from 2.3.1 --- cmd/meshobserv/meshobserv.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd/meshobserv/meshobserv.go b/cmd/meshobserv/meshobserv.go index ed8860c..bfbe722 100644 --- a/cmd/meshobserv/meshobserv.go +++ b/cmd/meshobserv/meshobserv.go @@ -130,11 +130,15 @@ func handleMessage(from uint32, topic string, portNum generated.PortNum, payload log.Printf("[warn] could not parse MapReport payload from %v on %v: %v", from, topic, err) return } + fwVersion := mapReport.GetFirmwareVersion() + // 2.3.1 has a bug that spams multiple MapReports every second + if len(fwVersion) > 5 && fwVersion[:5] == "2.3.1" { + return + } longName := mapReport.GetLongName() shortName := mapReport.GetShortName() hwModel := mapReport.GetHwModel().String() role := mapReport.GetRole().String() - fwVersion := mapReport.GetFirmwareVersion() region := mapReport.GetRegion().String() modemPreset := mapReport.GetModemPreset().String() hasDefaultCh := mapReport.GetHasDefaultChannel()