do not start if secondary serial not configured - give user a chance to use same peripheral for kline

only:proteus_f4
This commit is contained in:
rusefi 2023-03-10 17:49:43 -05:00
parent 469ba23b88
commit eff233b346
1 changed files with 4 additions and 1 deletions

View File

@ -90,7 +90,10 @@ void startSerialChannels() {
#endif
#if defined(TS_SECONDARY_UxART_PORT)
secondaryChannelThread.start();
// do not start thread if not configured - give user a chance to use same peripheral for kline
if (isBrainPinValid(engineConfiguration->binarySerialTxPin)) {
secondaryChannelThread.start();
}
#endif
}