mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 12:03:34 +08:00
Sensors: Code style
This commit is contained in:
@@ -1657,6 +1657,7 @@ Sensors::adc_poll(struct sensor_combined_s &raw)
|
||||
if (ADC_BATTERY_VOLTAGE_CHANNEL == buf_adc[i].am_channel) {
|
||||
/* Voltage in volts */
|
||||
bat_voltage_v = (buf_adc[i].am_data * _parameters.battery_voltage_scaling);
|
||||
|
||||
if (bat_voltage_v > 0.5f) {
|
||||
updated_battery = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user