From a2015ca412ca9a33792591cf7ced5f5475034426 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Mon, 27 Jul 2020 10:55:46 -0400 Subject: [PATCH] added sleep after shutdown command --- afsk/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/afsk/main.c b/afsk/main.c index b80659f1..82835276 100644 --- a/afsk/main.c +++ b/afsk/main.c @@ -405,7 +405,7 @@ int main(int argc, char *argv[]) { pinMode (onLed, OUTPUT); digitalWrite (onLed, onLedOn); #ifdef DEBUG_LOGGING - printf("Tx LED On\n"); + printf("Power LED On\n"); #endif // if ((cycle == ON) && !ax5043) // don't cycle modes if using AX5043 @@ -415,8 +415,7 @@ int main(int argc, char *argv[]) { fprintf(config_file, "%s %d", call, reset_count); fclose(config_file); config_file = fopen("sim.cfg","r"); - - + if (vB4) { sensor[PLUS_X] = config_sensor("/dev/i2c-1", 0x40, 400); @@ -566,7 +565,8 @@ while (loop-- != 0) digitalWrite (onLed, onLedOff); popen("sudo shutdown -h now > /dev/null 2>&1", "r"); - } + sleep(10); + } if (mode == FSK) { bitRate = 200;