Skip to content
Snippets Groups Projects
Commit 09bf24cb authored by Emilio Corigliano's avatar Emilio Corigliano
Browse files

[Rovie] Refactored a bit entrypoint

parent 9f96cb59
Branches
Tags
1 merge request!35[Rovie] Merge rovie GS
Pipeline #10273 passed
...@@ -79,27 +79,35 @@ int main() ...@@ -79,27 +79,35 @@ int main()
// Ok now start them // Ok now start them
ok &= serial->start(); if (!serial->start())
if (!ok)
{ {
ok &= false;
printf("[error] Failed to start serial!\n"); printf("[error] Failed to start serial!\n");
} }
ok &= ethernet->start(); if (!ethernet->start())
if (!ok)
{ {
ok &= false;
printf("[error] Failed to start ethernet!\n"); printf("[error] Failed to start ethernet!\n");
} }
ok &= radioRig->start(); if (!radioRig->start())
if (!ok)
{ {
ok &= false;
printf("[error] Failed to start RIG radio!\n"); printf("[error] Failed to start RIG radio!\n");
errorLoop();
} }
if (ok)
{
printf("All good!\n"); printf("All good!\n");
led1On(); led1On();
idleLoop(); idleLoop();
}
else
{
printf("Something didn't initialize!\n");
errorLoop();
}
return 0; return 0;
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment