docs
This commit is contained in:
parent
2050580a16
commit
8da3d17772
|
@ -428,6 +428,7 @@ static int tsProcessOne(TsChannelBase* tsChannel) {
|
||||||
if (received != 1) {
|
if (received != 1) {
|
||||||
// tunerStudioError("ERROR: no command");
|
// tunerStudioError("ERROR: no command");
|
||||||
#if EFI_BLUETOOTH_SETUP
|
#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
|
// assume there's connection loss and notify the bluetooth init code
|
||||||
bluetoothSoftwareDisconnectNotify();
|
bluetoothSoftwareDisconnectNotify();
|
||||||
#endif /* EFI_BLUETOOTH_SETUP */
|
#endif /* EFI_BLUETOOTH_SETUP */
|
||||||
|
@ -518,11 +519,12 @@ void TunerstudioThread::ThreadTask() {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Until the end of time, process incoming messages.
|
// Until the end of time, process incoming messages.
|
||||||
while(true) {
|
while (true) {
|
||||||
if (tsProcessOne(channel) == 0)
|
if (tsProcessOne(channel) == 0) {
|
||||||
onDataArrived(true);
|
onDataArrived(true);
|
||||||
else
|
} else {
|
||||||
onDataArrived(false);
|
onDataArrived(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue