Update meshobserv.go

This change prevents newer versions like 2.3.10 and 2.3.11 from being incorrectly filtered out. This addresses the issues reported in GitHub issue #12
This commit is contained in:
Delurkdotcom 2024-06-07 11:41:49 +02:00 committed by GitHub
parent 33b809fbb6
commit d4e40049a8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -132,7 +132,7 @@ func handleMessage(from uint32, topic string, portNum generated.PortNum, payload
}
fwVersion := mapReport.GetFirmwareVersion()
// 2.3.1 has a bug that spams multiple MapReports every second
if len(fwVersion) > 5 && fwVersion[:5] == "2.3.1" {
if len(fwVersion) > 5 && fwVersion[:5] == "2.3.1" || strings.HasPrefix(fwVersion, "2.3.1.") {
return
}
longName := mapReport.GetLongName()