Update transmit.py use skip to determine 15 seconds of sleep for cw mode

master-bh
Alan Johnston 2 months ago committed by GitHub
parent cd9daa55f2
commit dacf276cfc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -29,7 +29,7 @@ def uptime_seconds():
return uptime
except Exception as e:
print(f"An error occurred: {e}")
print("uptime_seconds failed")
print(" failed")
def input(pin):
# command = "gpio -g read " + str(pin)
@ -1090,7 +1090,7 @@ if __name__ == "__main__":
print(mode)
update_doppler()
if (mode == 'm') and (uptime_seconds() < (uptime_time + 5)):
if (mode == 'm') and (skip == False):
print("Sleeping 15 seconds")
sleep(15) # avoid CW jumping around at start

Loading…
Cancel
Save

Powered by TurnKey Linux.