1
0
mirror of https://github.com/craigerl/aprsd.git synced 2025-08-18 04:32:27 -04:00

Make some catchall fields non hashable.

This makes some of the packet fields non-hashable that
will eventually end up being dicts or lists.
This commit is contained in:
Hemna 2025-04-21 15:42:17 -04:00
parent ce79f0112f
commit acd639a910
2 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
#
# Listen on amateur radio aprs-is network for messages and respond to them.
#
# Listen on amateur radio aprs-is network for messages and respond to them.
# You must have an amateur radio callsign to use this software. You must
# create an ~/.aprsd/config.yml file with all of the required settings. To
# generate an example config.yml, just run aprsd, then copy the sample config

View File

@ -405,7 +405,7 @@ class MicEPacket(GPSPacket):
messagecapable: bool = False
mbits: Optional[str] = None
mtype: Optional[str] = None
telemetry: Optional[dict] = field(default=None)
telemetry: Optional[dict] = field(default=None, hash=False)
# in MPH
speed: float = 0.00
# 0 to 360
@ -430,8 +430,8 @@ class TelemetryPacket(GPSPacket):
mbits: Optional[str] = None
mtype: Optional[str] = None
telemetry: Optional[dict] = field(default=None)
tPARM: Optional[list[str]] = field(default=None) # noqa: N815
tUNIT: Optional[list[str]] = field(default=None) # noqa: N815
tPARM: Optional[list[str]] = field(default=None, hash=False) # noqa: N815
tUNIT: Optional[list[str]] = field(default=None, hash=False) # noqa: N815
# in MPH
speed: float = 0.00
# 0 to 360