From e383c3575c9598903166fac15c2bf1438e9b13df Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Fri, 11 Dec 2020 16:51:03 -0800 Subject: [PATCH] print pump current --- firmware/uart.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/uart.cpp b/firmware/uart.cpp index 5ab4dbd..d70d301 100644 --- a/firmware/uart.cpp +++ b/firmware/uart.cpp @@ -33,7 +33,7 @@ static void UartThread(void*) int lambdaIntPart = lambda; int lambdaThousandths = (lambda - lambdaIntPart) * 1000; - size_t writeCount = chsnprintf(printBuffer, 200, "%d.%03d\t%d\r\n", lambdaIntPart, lambdaThousandths, (int)GetSensorInternalResistance()); + size_t writeCount = chsnprintf(printBuffer, 200, "%d.%03d\t%d\t%d\r\n", lambdaIntPart, lambdaThousandths, (int)GetSensorInternalResistance(), (int)(GetPumpNominalCurrent() * 1000)); uartStartSend(&UARTD1, writeCount, printBuffer); chThdSleepMilliseconds(20);