mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Make argument name more useful.
Also fix a missed bandwith -> bandwidth typo fix.
This commit is contained in:
parent
d04a306be8
commit
8cc1e721b6
|
@ -386,7 +386,7 @@ class DATA:
|
||||||
while static.TRANSMITTING:
|
while static.TRANSMITTING:
|
||||||
time.sleep(0.01)
|
time.sleep(0.01)
|
||||||
|
|
||||||
def send_data_to_socket_queue(self, /, **kwargs):
|
def send_data_to_socket_queue(self, /, **jsondata):
|
||||||
"""
|
"""
|
||||||
Send information to the UI via JSON and the sock.SOCKET_QUEUE.
|
Send information to the UI via JSON and the sock.SOCKET_QUEUE.
|
||||||
|
|
||||||
|
@ -403,7 +403,6 @@ class DATA:
|
||||||
data=base64_data,
|
data=base64_data,
|
||||||
)
|
)
|
||||||
"""
|
"""
|
||||||
jsondata = kwargs
|
|
||||||
self.log.debug("[TNC] send_data_to_socket_queue:", jsondata=jsondata)
|
self.log.debug("[TNC] send_data_to_socket_queue:", jsondata=jsondata)
|
||||||
json_data_out = json.dumps(jsondata)
|
json_data_out = json.dumps(jsondata)
|
||||||
sock.SOCKET_QUEUE.put(json_data_out)
|
sock.SOCKET_QUEUE.put(json_data_out)
|
||||||
|
|
|
@ -185,9 +185,9 @@ if __name__ == "__main__":
|
||||||
)
|
)
|
||||||
PARSER.add_argument(
|
PARSER.add_argument(
|
||||||
"--500hz",
|
"--500hz",
|
||||||
dest="low_bandwith_mode",
|
dest="low_bandwidth_mode",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
help="Enable low bandwith mode ( 500 Hz only )",
|
help="Enable low bandwidth mode ( 500 Hz only )",
|
||||||
)
|
)
|
||||||
PARSER.add_argument(
|
PARSER.add_argument(
|
||||||
"--fsk",
|
"--fsk",
|
||||||
|
|
Loading…
Reference in a new issue