From da0f8f6301d667b825c1c083c8631665efcf8e45 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 14 Mar 2026 11:58:57 -0400 Subject: [PATCH] Update transmit.py kill arecord too --- transmit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/transmit.py b/transmit.py index 10696468..9d3342fc 100644 --- a/transmit.py +++ b/transmit.py @@ -555,7 +555,8 @@ if __name__ == "__main__": output(txLed, 0) print("0") rpitx = "arecord -D plughw:CARD=Loopback,DEV=1 -f S16_LE -r 48000 -c 1 | csdr convert_s16_f | csdr gain_ff 4000 | csdr convert_f_samplerf 20833 | sudo rpitx -i- -m RF -f 434900 &" - stop_rpitx = "sudo killall -9 rpitx" + stop_rpitx = "sudo killall -9 rpitx && sudo killall -9 arecord" + system(stop_rpitx) while (True): if (txc): sleep(0.1)