You are here: Forum Home → ANT Developers Forums → ANT General Questions → Thread
bStatus = pclMessageObject->SetChannelSearchTimeout(Channel, 255, MESSAGE_TIMEOUT);
if (closeChannelNow && antThreadRunning) {
if (!threadStopped) {
qDebug() << "OK Closed window,, Closing Channel Now!";
pclMessageObject->CloseChannel(pclMessageObject->GetChannelNumber(&stMessage;), MESSAGE_TIMEOUT);
threadStopped = true;
}
}
——————————————————
Free Indoor Cycling Software - https://maximumtrainer.com
/// Workout finish, close open channels
if (closeChannelNow && antThreadRunning) {
if (!threadStopped) {
threadStopped = true;
qDebug() << "OK Closed window, Closing all open Channel Now!";
foreach (int i, lstOpennedChannel) {
qDebug() << "Got to close channel:" << i;
pclMessageObject->CloseChannel(i, MESSAGE_TIMEOUT);
}
}
}
——————————————————
Free Indoor Cycling Software - https://maximumtrainer.com