Bugfix: Working on SDR RX

This commit is contained in:
Logan Cusano
2022-01-04 00:11:18 -05:00
parent 0ecca373c6
commit f2709cdb47

View File

@@ -10,7 +10,7 @@ class GQRXHandler():
def create_telnet_connection(self):
print("Creating connection")
tel_conn = Telnet(self.hostname, self.port)
tel_conn.read_until(bytes("Escape character is '^]'.", 'utf-8'))
tel_conn.read_until(b"Escape character is '^]'.")
return tel_conn
@@ -31,7 +31,7 @@ class GQRXHandler():
def change_mode(self, mode):
tel_conn = self.create_telnet_connection()
print(f"Changing mode to {mode}")
tel_conn.write(f"M {str(mode)}")
tel_conn.write(f"M {bytes(str(mode), 'utf-8')}")
tel_conn.read_all()
tel_conn.close()