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