mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 16:13:34 +08:00
dist-sensor: reduce enum names
This commit is contained in:
committed by
Mathieu Bresciani
parent
8bca467c15
commit
15e9c65a8f
@@ -49,7 +49,7 @@ void DistanceSensorChecks::checkAndReport(const Context &context, Report &report
|
||||
if (exists) {
|
||||
distance_sensor_s dist_sens;
|
||||
valid = _distance_sensor_sub[instance].copy(&dist_sens) && ((hrt_elapsed_time(&dist_sens.timestamp) < 1_s)
|
||||
|| (dist_sens.mode == distance_sensor_s::DISTANCE_SENSOR_MODE_DISABLED));
|
||||
|| (dist_sens.mode == distance_sensor_s::MODE_DISABLED));
|
||||
reporter.setIsPresent(health_component_t::distance_sensor);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user