From 8da3d17772c247c8dd6385df559079b2c0f9fd47 Mon Sep 17 00:00:00 2001 From: rusefillc Date: Wed, 8 Dec 2021 11:52:42 -0500 Subject: [PATCH] docs --- firmware/console/binary/tunerstudio.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/firmware/console/binary/tunerstudio.cpp b/firmware/console/binary/tunerstudio.cpp index 38025367e1..e0798759f3 100644 --- a/firmware/console/binary/tunerstudio.cpp +++ b/firmware/console/binary/tunerstudio.cpp @@ -428,6 +428,7 @@ static int tsProcessOne(TsChannelBase* tsChannel) { if (received != 1) { // tunerStudioError("ERROR: no command"); #if EFI_BLUETOOTH_SETUP + // no data in a whole second means time to disconnect BT // assume there's connection loss and notify the bluetooth init code bluetoothSoftwareDisconnectNotify(); #endif /* EFI_BLUETOOTH_SETUP */ @@ -518,11 +519,12 @@ void TunerstudioThread::ThreadTask() { } // Until the end of time, process incoming messages. - while(true) { - if (tsProcessOne(channel) == 0) + while (true) { + if (tsProcessOne(channel) == 0) { onDataArrived(true); - else + } else { onDataArrived(false); + } } }