Make argument name more useful.

Also fix a missed bandwith -> bandwidth typo fix.
This commit is contained in:
Paul Kronenwetter 2022-05-30 16:40:58 -04:00
parent d04a306be8
commit 8cc1e721b6
2 changed files with 3 additions and 4 deletions

View file

@ -386,7 +386,7 @@ class DATA:
while static.TRANSMITTING:
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.
@ -403,7 +403,6 @@ class DATA:
data=base64_data,
)
"""
jsondata = kwargs
self.log.debug("[TNC] send_data_to_socket_queue:", jsondata=jsondata)
json_data_out = json.dumps(jsondata)
sock.SOCKET_QUEUE.put(json_data_out)

View file

@ -185,9 +185,9 @@ if __name__ == "__main__":
)
PARSER.add_argument(
"--500hz",
dest="low_bandwith_mode",
dest="low_bandwidth_mode",
action="store_true",
help="Enable low bandwith mode ( 500 Hz only )",
help="Enable low bandwidth mode ( 500 Hz only )",
)
PARSER.add_argument(
"--fsk",