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:
parent
ce79f0112f
commit
acd639a910
@ -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
|
# 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
|
# 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
|
# generate an example config.yml, just run aprsd, then copy the sample config
|
||||||
|
@ -405,7 +405,7 @@ class MicEPacket(GPSPacket):
|
|||||||
messagecapable: bool = False
|
messagecapable: bool = False
|
||||||
mbits: Optional[str] = None
|
mbits: Optional[str] = None
|
||||||
mtype: Optional[str] = None
|
mtype: Optional[str] = None
|
||||||
telemetry: Optional[dict] = field(default=None)
|
telemetry: Optional[dict] = field(default=None, hash=False)
|
||||||
# in MPH
|
# in MPH
|
||||||
speed: float = 0.00
|
speed: float = 0.00
|
||||||
# 0 to 360
|
# 0 to 360
|
||||||
@ -430,8 +430,8 @@ class TelemetryPacket(GPSPacket):
|
|||||||
mbits: Optional[str] = None
|
mbits: Optional[str] = None
|
||||||
mtype: Optional[str] = None
|
mtype: Optional[str] = None
|
||||||
telemetry: Optional[dict] = field(default=None)
|
telemetry: Optional[dict] = field(default=None)
|
||||||
tPARM: 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) # noqa: N815
|
tUNIT: Optional[list[str]] = field(default=None, hash=False) # noqa: N815
|
||||||
# in MPH
|
# in MPH
|
||||||
speed: float = 0.00
|
speed: float = 0.00
|
||||||
# 0 to 360
|
# 0 to 360
|
||||||
|
Loading…
x
Reference in New Issue
Block a user