From 8870177db7ba263f08cff462a1fff6c38cd5389c Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Wed, 3 Jul 2024 20:21:54 -0400 Subject: [PATCH] Update rpitx.py move ser.close() --- rpitx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpitx.py b/rpitx.py index 280c58e5..b50d34e3 100644 --- a/rpitx.py +++ b/rpitx.py @@ -398,9 +398,9 @@ if __name__ == "__main__": # ser.write(b"AT+DMOSETGROUP=0,435.0000,434.9000,0,3,0,0\r\n") ser.write(uhf_string.encode()) sleep(0.1) + ser.close() except: print("Error in serial write") - ser.close() output(pd, 0) sleep(10) # delay so cubesatsim code catches up