Sensors: Code style

This commit is contained in:
Lorenz Meier
2016-04-23 14:45:12 +02:00
parent 7d57713dd5
commit a49ba1a383
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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;
}