mirror of https://github.com/rusefi/wideband.git
SPI means EGT and EGT means SPI (#135)
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
This commit is contained in:
parent
4b79aa451e
commit
2efd64d0b9
|
@ -52,12 +52,14 @@ static void UartThread(void*)
|
||||||
chnWrite(&SD1, (const uint8_t *)printBuffer, writeCount);
|
chnWrite(&SD1, (const uint8_t *)printBuffer, writeCount);
|
||||||
chThdSleepMilliseconds(50);
|
chThdSleepMilliseconds(50);
|
||||||
|
|
||||||
|
#if HAL_USE_SPI
|
||||||
writeCount = chsnprintf(printBuffer, 200,
|
writeCount = chsnprintf(printBuffer, 200,
|
||||||
"EGT: %d C (int %d C)\r\n",
|
"EGT: %d C (int %d C)\r\n",
|
||||||
(int)getEgtDrivers()[0].temperature,
|
(int)getEgtDrivers()[0].temperature,
|
||||||
(int)getEgtDrivers()[0].cold_joint_temperature);
|
(int)getEgtDrivers()[0].cold_joint_temperature);
|
||||||
chnWrite(&SD1, (const uint8_t *)printBuffer, writeCount);
|
chnWrite(&SD1, (const uint8_t *)printBuffer, writeCount);
|
||||||
chThdSleepMilliseconds(50);
|
chThdSleepMilliseconds(50);
|
||||||
|
#endif /* HAL_USE_SPI */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue