Update transmit.py change timeout to timelimit

master-bg
Alan Johnston 1 week ago committed by GitHub
parent e3bc0048d4
commit 446f9195f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -625,7 +625,9 @@ def transmit_carrier(duration):
global tx_doppler_freq_hz
global txLed
update_doppler("no")
command = "timeout " + str(duration) + " sudo tune -f " + str(tx_doppler_freq_hz) + " > /dev/null 2>&1" # 434.9e6
dur_str = str(duration)
# command = "timeout " + str(duration) + " sudo tune -f " + str(tx_doppler_freq_hz) + " > /dev/null 2>&1" # 434.9e6
command = "timelimit -t" + dur_str + " -T" + dur_str + " sudo tune -f " + str(tx_doppler_freq_hz) + " > /dev/null 2>&1"
start = "sudo tune -f " + str(tx_doppler_freq_hz) + " &" # + " & > /dev/null 2>&1" # 434.9e6
stop = "sudo rpitx -f 434.9e6 &"
killrpitx = "sudo killall -9 rpitx &"

Loading…
Cancel
Save

Powered by TurnKey Linux.