SPI means EGT and EGT means SPI (#135)

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
This commit is contained in:
rusefillc 2022-08-20 14:25:16 -04:00 committed by GitHub
parent 4b79aa451e
commit 2efd64d0b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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 */
}
}