1
0
mirror of https://github.com/craigerl/aprsd.git synced 2025-04-19 09:49:01 -04:00

Added new acked property to the core Packet

This is intended to be a flag for message packets that are sent out.
When we get an ack for that sent packet the acked should be changed
to True.
This commit is contained in:
Hemna 2024-12-02 20:11:43 -05:00
parent 0d8a1ac334
commit 3c058f3e7b

View File

@ -99,6 +99,8 @@ class Packet:
send_count: int = field(repr=False, default=0, compare=False, hash=False)
retry_count: int = field(repr=False, default=3, compare=False, hash=False)
last_send_time: float = field(repr=False, default=0, compare=False, hash=False)
# Was the packet acked?
acked: bool = field(repr=False, default=False, compare=False, hash=False)
# Do we allow this packet to be saved to send later?
allow_delay: bool = field(repr=False, default=True, compare=False, hash=False)