Skip to content

Commit

Permalink
fixed dxcluster ringing bell and windows crash on wav recording
Browse files Browse the repository at this point in the history
  • Loading branch information
mcogoni committed May 8, 2021
1 parent 4ed033b commit 9e49f3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion supersdr.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ def plot_eibi(surface_):
radio_mode = "USB"

kiwi_filter = filtering(KIWI_RATE/2, AUDIO_RATE)
audio_rec = audio_recording("supersdr_%s.wav"%datetime.now())
audio_rec = audio_recording("supersdr_%s.wav"%datetime.now().isoformat().split(".")[0].replace(":", "_"))

print(kiwi_host, kiwi_port, kiwi_password, zoom, freq)
#init KIWI WF and RX audio
Expand Down
4 changes: 2 additions & 2 deletions utils_supersdr.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,12 @@ def send(self, msg):

def receive(self):
msg = self.sock.recv(2048)
return msg.decode("latin-1")
return msg.decode("utf-8")

def run(self, kiwi_snd):
while not kiwi_snd.terminate:
dx_cluster_msg = self.receive()
print(dx_cluster_msg)
print("%s"%dx_cluster_msg.rstrip('\r\n').replace("\x07", ""))
time.sleep(5)


Expand Down

0 comments on commit 9e49f3f

Please sign in to comment.