Skip to content
Snippets Groups Projects
Commit 63275ef9 authored by Lorenz Meier's avatar Lorenz Meier Committed by Lorenz Meier
Browse files

Sensors: Perform init on best effort basis

parent c3022bf7
No related branches found
No related tags found
No related merge requests found
......@@ -91,24 +91,25 @@ int
sensors_init(void)
{
int ret;
int ret_combined = 0;
ret = accel_init();
if (ret) { return ret; }
if (ret) { ret_combined = ret; }
ret = gyro_init();
if (ret) { return ret; }
if (ret) { ret_combined = ret; }
ret = mag_init();
if (ret) { return ret; }
if (ret) { ret_combined = ret; }
ret = baro_init();
if (ret) { return ret; }
if (ret) { ret_combined = ret; }
return 0;
return ret_combined;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment