BATT to BAT

pico-i2c
alanbjohnston 3 years ago committed by GitHub
parent ba257eb1b9
commit e87f22d0b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2267,8 +2267,8 @@ void read_ina219()
Serial.print(current_mA);
Serial.println(" mA");
}
voltage[BATT] = loadvoltage;
current[BATT] = current_mA;
voltage[BAT] = loadvoltage;
current[BAT] = current_mA;
/*
shuntvoltage = ina219_1_0x45.getShuntVoltage_mV();
busvoltage = ina219_1_0x45.getBusVoltage_V();
@ -2288,8 +2288,8 @@ void read_ina219()
} else {
voltage[BATT] = 0.0;
current[BATT] = 0.0;
voltage[BAT] = 0.0;
current[BAT] = 0.0;
}
if (i2c5) {

Loading…
Cancel
Save

Powered by TurnKey Linux.