]> www.average.org Git - loctrkd.git/blobdiff - gps303/GT06mod.py
Use command line args and config more
[loctrkd.git] / gps303 / GT06mod.py
index 31be5d3bc5bbe354a4f2ff5b94b4f88c7d2c9f93..3256d6ca5ae4f9e61fde001c3b3e8891b1e8fc74 100755 (executable)
@@ -15,6 +15,7 @@ log = getLogger("gps303")
 
 class _GT06pkt:
     PROTO: int
+    CONFIG = None
 
     def __init__(self, *args, **kwargs):
         assert len(args) == 0
@@ -263,3 +264,6 @@ def handle_packet(packet, addr, when):
 
 def make_response(msg):
     return msg.response()
+
+def set_config(config):  # Note that we are setting _class_ attribute
+    _GT06pkt.CONFIG = config