mirror of https://github.com/rusefi/wideband.git
print pump current
This commit is contained in:
parent
770283accd
commit
e383c3575c
|
@ -33,7 +33,7 @@ static void UartThread(void*)
|
||||||
int lambdaIntPart = lambda;
|
int lambdaIntPart = lambda;
|
||||||
int lambdaThousandths = (lambda - lambdaIntPart) * 1000;
|
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);
|
uartStartSend(&UARTD1, writeCount, printBuffer);
|
||||||
|
|
||||||
chThdSleepMilliseconds(20);
|
chThdSleepMilliseconds(20);
|
||||||
|
|
Loading…
Reference in New Issue