From e87f22d0b6ebfedafa183db4402ebd579c4f0270 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Sat, 24 Sep 2022 22:53:47 -0400 Subject: [PATCH] BATT to BAT --- cubesatsim/cubesatsim.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cubesatsim/cubesatsim.ino b/cubesatsim/cubesatsim.ino index aad202d9..5c6dc885 100644 --- a/cubesatsim/cubesatsim.ino +++ b/cubesatsim/cubesatsim.ino @@ -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) {