mirror of
https://github.com/craigerl/aprsd.git
synced 2026-04-07 07:35:33 -04:00
Make fake driver conform to protocol
the send method is supposed to return a boolean.
This commit is contained in:
parent
7c5d9ee92d
commit
093ada06b1
@ -64,7 +64,7 @@ class APRSDFakeDriver(metaclass=trace.TraceWrapperMetaclass):
|
||||
return None
|
||||
|
||||
@wrapt.synchronized(lock)
|
||||
def send(self, packet: core.Packet):
|
||||
def send(self, packet: core.Packet) -> bool:
|
||||
"""Send an APRS Message object."""
|
||||
LOG.info(f'Sending packet: {packet}')
|
||||
payload = None
|
||||
@ -84,6 +84,7 @@ class APRSDFakeDriver(metaclass=trace.TraceWrapperMetaclass):
|
||||
f"FAKE::Send '{payload}' TO '{packet.to_call}' From "
|
||||
f'\'{packet.from_call}\' with PATH "{self.path}"',
|
||||
)
|
||||
return True
|
||||
|
||||
def consumer(self, callback: Callable, raw: bool = False):
|
||||
LOG.debug('Start non blocking FAKE consumer')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user