Replaced arbitrary sleep with a wait until response

This commit is contained in:
Logan Cusano
2022-03-19 00:16:24 -04:00
parent c3fb20f12e
commit 8355b98da5

View File

@@ -19,7 +19,7 @@ class GQRXHandler():
def change_freq(self, freq):
print(f"Changing freq to {freq}")
self.tel_conn.write(bytes(f"F {int(freq)}", 'utf-8'))
sleep(.5)
self.tel_conn.read_until('RPRT 0')
def change_squelch(self, squelch):
if not check_negative(squelch):