Skip to content

Commit

Permalink
better naming
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Jan 24, 2025
1 parent ac7a051 commit 416a6d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/uart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static void UartThread(void*)
float lambda = GetLambda(ch);
int lambdaIntPart = lambda;
int lambdaThousandths = (lambda - lambdaIntPart) * 1000;
int batteryVoltageMv = GetSampler(ch).GetInternalHeaterVoltage() * 1000;
int heaterVoltageMv = GetSampler(ch).GetInternalHeaterVoltage() * 1000;
int duty = GetHeaterDuty(ch) * 100;

size_t writeCount = chsnprintf(printBuffer, sizeof(printBuffer),
Expand All @@ -51,7 +51,7 @@ static void UartThread(void*)
(int)GetSampler(ch).GetSensorInternalResistance(),
(int)GetSampler(ch).GetSensorTemperature(),
(int)(GetSampler(ch).GetPumpNominalCurrent() * 1000),
batteryVoltageMv,
heaterVoltageMv,
describeHeaterState(GetHeaterState(ch)), duty,
describeFault(GetCurrentFault(ch)));
chnWrite(&SD1, (const uint8_t *)printBuffer, writeCount);
Expand Down

0 comments on commit 416a6d9

Please sign in to comment.