Update dtmf_aprs_cc.py try around stdin read for UTF-8 issue

pacsat-v2.2-tlm3
Alan Johnston 7 months ago committed by GitHub
parent 11045fce4a
commit 66d2dc3471
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -18,6 +18,7 @@ if __name__ == "__main__":
if ('d' == sys.argv[1]):
debug_mode = True
try:
for line in sys.stdin:
# if (debug_mode):
print(line, end =" ")
@ -193,7 +194,8 @@ if __name__ == "__main__":
change_mode = False
except:
print("Error reading line (probably due to UTF-8 issue)")
print("Waiting 5 seconds to allow unplug and plug of soundcard")
sleep(5)
print("Done")

Loading…
Cancel
Save

Powered by TurnKey Linux.