Skip to content

Commit e8e2e4d

Browse files
committed
fixed label
1 parent 45d6b59 commit e8e2e4d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Telemetry-Main/BT817Q/layouts.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ void Layouts::drawStandardLayout2(
225225
#define ACC_WARNING_TEMP 52
226226
//TODO!!! placeholder!! ENSURE THIS IS THE CORRECT VALUE!!!!
227227

228-
void Layouts::drawLayout3(Faults faults, float mtr_volt, uint8_t acc_temp,
228+
void Layouts::drawLayout3(Faults faults, float acc_volt, uint8_t acc_temp,
229229
uint8_t ctrl_temp, uint8_t mtr_temp, uint8_t soc,
230230
float glv, bool rtds, int tick) {
231231
//--------init-------------
@@ -285,7 +285,7 @@ void Layouts::drawLayout3(Faults faults, float mtr_volt, uint8_t acc_temp,
285285

286286
//---------MC warning box----------
287287
Color mc_volts_bg = Color {18, 219, 255};
288-
if (mtr_volt < MC_WARNING_VOLT) { //flash the box to alarm driver if MC volts below warning point
288+
if (acc_volt < MC_WARNING_VOLT) { //flash the box to alarm driver if MC volts below warning point
289289
if (tick % 2 == 0) {
290290
mc_volts_bg = red;
291291
}
@@ -322,7 +322,7 @@ void Layouts::drawLayout3(Faults faults, float mtr_volt, uint8_t acc_temp,
322322

323323
//___MC and ACC______
324324
drawFormattedText(275, 75,
325-
"MC\n%03.1f V ", 1, OPT_CENTER, mtr_volt);
325+
"ACC\n%03.1f V ", 1, OPT_CENTER, acc_volt);
326326
drawFormattedText(525, 75,
327327
"ACC\n%03d'C ", 1, OPT_CENTER, acc_temp);
328328

Telemetry-Main/BT817Q/layouts.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class Layouts : public BT817Q {
127127
}
128128

129129
void drawLayout3(Faults faults,
130-
float mtr_volt,
130+
float acc_volt,
131131
uint8_t acc_temp,
132132
uint8_t ctrl_temp,
133133
uint8_t mtr_temp,

0 commit comments

Comments
 (0)