From 31995f0a0855921b313606ecc658889410f46b94 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 29 Jun 2021 10:28:58 -0400 Subject: [PATCH] add stop before rpitx restart --- main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.c b/main.c index 347c8ca0..c9e166c0 100644 --- a/main.c +++ b/main.c @@ -23,6 +23,9 @@ int main(int argc, char * argv[]) { + FILE * rpitx_stop = popen("sudo systemctl stop rpitx", "r"); + pclose(rpitx_stop); + printf("Test bus 1\n"); fflush(stdout); i2c_bus1 = (test_i2c_bus(1) != -1) ? ON : OFF;