From 11167eff189b0d23d8f88ada09f975dc7f2d80fc Mon Sep 17 00:00:00 2001 From: sotech117 Date: Fri, 15 Dec 2023 00:10:48 -0500 Subject: remove print statement --- utils.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'utils.py') diff --git a/utils.py b/utils.py index fcbb278..9706e35 100644 --- a/utils.py +++ b/utils.py @@ -68,11 +68,9 @@ def play_data(data, start_freq, freq_step, bytes_per_transmit, stream): flip_flag = 0 # TODO: make this global between plays for byte in data: byte = byte + str(flip_flag) + '1' - print(byte) samples = None for i, bit in enumerate(byte): if bit == '1': - print(freq_list[i]) s = .125 * np.sin(2 * np.pi * np.arange(44100 * send_duration) * freq_list[i] / 44100) if samples is None: samples = s @@ -86,8 +84,8 @@ def play_data(data, start_freq, freq_step, bytes_per_transmit, stream): def receive_string(binary): binary_string = ''.join(binary) try: - print(chr(int(binary_string, 2))) + # print(chr(int(binary_string, 2))) return chr(int(binary_string, 2)) except ValueError: - print("Warn: Invalid binary data: ", binary_string) - return 'X' + # print("Warn: Invalid binary data: ", binary_string) + return '' -- cgit v1.2.3-70-g09d2