From 5836db7ecb2ba5f81fb40a4c019d2b6ec936c594 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Mon, 8 Jul 2024 15:17:55 -0400 Subject: [PATCH] Update main.c if command and control off, don't add extra delay --- main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index d4e678d9..a82dfc4a 100644 --- a/main.c +++ b/main.c @@ -43,7 +43,10 @@ int main(int argc, char * argv[]) { sleep(5); // try sleep at start to help boot } else { - printf("Pi Zero detected\n"); + printf("Pi Zero detected\n"); + FILE * command_file = fopen("/home/pi/CubeSatSim/command_control", "r"); + if (command_file == NULL) + pi_zero_offset = 500; sleep(10); }