Ignore packets above max portnum (511)

Meshtastic defines the maximum PortNum as 511.

https://buf.build/meshtastic/protobufs/docs/main:meshtastic

Packets using a PortNum above this are not currently useful
for mapping - ignore them for now.
This commit is contained in:
Tom Fifield
2024-05-20 11:47:42 +08:00
parent 9c74130db5
commit a07ce17dce

View File

@ -721,6 +721,7 @@ client.on("message", async (topic, message) => {
|| portnum === 66 // ignore RANGE_TEST_APP || portnum === 66 // ignore RANGE_TEST_APP
|| portnum === 72 // ignore ATAK_PLUGIN || portnum === 72 // ignore ATAK_PLUGIN
|| portnum === 257 // ignore ATAK_FORWARDER || portnum === 257 // ignore ATAK_FORWARDER
|| portnum > 511 // ignore above MAX
){ ){
return; return;
} }