diff --git a/src/entrypoints/Groundstation/rovie-groundstation-entry.cpp b/src/entrypoints/Groundstation/rovie-groundstation-entry.cpp index be6064a41333a686e502d246a61b3233a82acf91..b52aaa1cd3a8246ca14c1c0726761a5ca8cf3182 100644 --- a/src/entrypoints/Groundstation/rovie-groundstation-entry.cpp +++ b/src/entrypoints/Groundstation/rovie-groundstation-entry.cpp @@ -79,27 +79,35 @@ int main() // Ok now start them - ok &= serial->start(); - if (!ok) + if (!serial->start()) { + ok &= false; printf("[error] Failed to start serial!\n"); } - ok &= ethernet->start(); - if (!ok) + if (!ethernet->start()) { + ok &= false; printf("[error] Failed to start ethernet!\n"); } - ok &= radioRig->start(); - if (!ok) + if (!radioRig->start()) { + ok &= false; printf("[error] Failed to start RIG radio!\n"); + } + + if (ok) + { + printf("All good!\n"); + led1On(); + idleLoop(); + } + else + { + printf("Something didn't initialize!\n"); errorLoop(); } - printf("All good!\n"); - led1On(); - idleLoop(); return 0; } \ No newline at end of file