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
No related branches found
No related tags found
No related merge requests found
......@@ -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");
errorLoop();
}
if (ok)
{
printf("All good!\n");
led1On();
idleLoop();
}
else
{
printf("Something didn't initialize!\n");
errorLoop();
}
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