close device on stop rx

This commit is contained in:
Johannes Pohl
2017-02-27 15:50:58 +01:00
parent 5fa94fed6c
commit 4bfee4e24b

View File

@@ -26,6 +26,7 @@ def receive_sync(connection, device_number: int, center_freq: int, sample_rate:
if not exit_requested:
connection.send_bytes(rtlsdr.read_sync())
rtlsdr.close()
connection.close()
def process_command(command):
@@ -73,7 +74,7 @@ class RTLSDR(Device):
pass # happens in start rx mode
def close(self):
rtlsdr.close()
pass # happens in stop tx mode
def start_rx_mode(self):
self.init_recv_buffer()