refactored
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
from receiver.ascii_receiver import AsciiReceiver
|
||||
|
||||
|
||||
class NmeaReceiver(AsciiReceiver):
|
||||
def __init__(self, name: str, tid: str, msg_type: str):
|
||||
if tid == "--":
|
||||
AsciiReceiver.__init__(self, name, filter=f"^\\$..{msg_type}.*")
|
||||
else:
|
||||
AsciiReceiver.__init__(self, name, filter=f"^\\${tid}{msg_type}.*")
|
||||
Reference in New Issue
Block a user