Actually use the quick search timeout

Was checking the quick search flag against the channel number
instead of the channel flags!
This commit is contained in:
Jon Escombe
2016-01-06 19:00:33 +00:00
parent 910713b7e6
commit 855944d55d

View File

@@ -1014,7 +1014,7 @@ void ANTChannel::attemptTransition(int message_id)
case ANT_CHANNEL_ID:
//qDebug()<<number<<"TRANSITION from channel id";
//qDebug()<<number<<"**** adjust timeout";
if (channel_type & CHANNEL_TYPE_QUICK_SEARCH) {
if (channel_type_flags & CHANNEL_TYPE_QUICK_SEARCH) {
parent->sendMessage(ANTMessage::setSearchTimeout(number, (int)(timeout_scan/2.5)));
} else {
parent->sendMessage(ANTMessage::setSearchTimeout(number, (int)(timeout_lost/2.5)));