From 2efd64d0b96fb104b6e7aabe69c75bb7a0c77177 Mon Sep 17 00:00:00 2001 From: rusefillc <48498823+rusefillc@users.noreply.github.com> Date: Sat, 20 Aug 2022 14:25:16 -0400 Subject: [PATCH] SPI means EGT and EGT means SPI (#135) Co-authored-by: rusefillc --- firmware/uart.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/firmware/uart.cpp b/firmware/uart.cpp index 1898290..532d2aa 100644 --- a/firmware/uart.cpp +++ b/firmware/uart.cpp @@ -52,12 +52,14 @@ static void UartThread(void*) chnWrite(&SD1, (const uint8_t *)printBuffer, writeCount); chThdSleepMilliseconds(50); +#if HAL_USE_SPI writeCount = chsnprintf(printBuffer, 200, "EGT: %d C (int %d C)\r\n", (int)getEgtDrivers()[0].temperature, (int)getEgtDrivers()[0].cold_joint_temperature); chnWrite(&SD1, (const uint8_t *)printBuffer, writeCount); chThdSleepMilliseconds(50); +#endif /* HAL_USE_SPI */ } }