mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-22 08:47:34 +08:00
sensors: astyle
This commit is contained in:
@@ -946,6 +946,7 @@ Sensors::parameters_update()
|
||||
DevMgr::getHandle(BARO0_DEVICE_PATH, h_baro);
|
||||
|
||||
#ifndef __PX4_QURT
|
||||
|
||||
// TODO: this needs fixing for QURT
|
||||
if (!h_baro.isValid()) {
|
||||
warnx("ERROR: no barometer found on %s (%d)", BARO0_DEVICE_PATH, h_baro.getError());
|
||||
@@ -959,6 +960,7 @@ Sensors::parameters_update()
|
||||
return ERROR;
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
return OK;
|
||||
@@ -2115,6 +2117,7 @@ Sensors::task_main()
|
||||
ret = adc_init();
|
||||
|
||||
if (ret) { break; }
|
||||
|
||||
#endif
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user