diff options
author | RALOVICH, Kristof <tade60@freemail.hu> | 2014-01-19 14:21:53 +0100 |
---|---|---|
committer | RALOVICH, Kristof <tade60@freemail.hu> | 2014-01-19 14:21:53 +0100 |
commit | a9ac6b57ff2209fefd00d25af3c7ae6d254bfb5e (patch) | |
tree | 4161a8b0fc33e38b3b5a3725cc4eb66f9a8844d1 /src | |
parent | bbfb75fc8c595edaaa420aa521f184ed4a1f5885 (diff) |
disable device guessing
doesn't work reliably, and not used anywhere else after all
Diffstat (limited to 'src')
-rw-r--r-- | src/AntFr310XT.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/AntFr310XT.cpp b/src/AntFr310XT.cpp index b7ec292..867c3f1 100644 --- a/src/AntFr310XT.cpp +++ b/src/AntFr310XT.cpp @@ -359,13 +359,13 @@ AntFr310XT::handleEvents() uchar transType=0; CHECK_RETURN_FALSE(m_antMessenger->ANT_GetChannelId(chan, &devNum, &devId, &transType, 1000)); LOG(LOG_RAW) << "\n\nFound device devNum=0x" << toString<ushort>(devNum) << " devId=0x" << toString<uint>(devId,2,'0') << " transType=0x" << toString<uint>(transType,2,'0') << "\n\n\n"; - GarminProducts prod; - if(guessDeviceType(devNum, devId, transType, &prod)) - { - if(prod==GarminFR310XT) { LOG(LOG_INF) << "guessed: GarminFR310XT\n\n\n"; } - if(prod==GarminFR405) { LOG(LOG_INF) << "guessed: GarminFR405\n\n\n"; } - } - else { LOG(LOG_WARN) << "guessing failed!\n"; } + //GarminProducts prod; + //if(guessDeviceType(devNum, devId, transType, &prod)) + //{ + // if(prod==GarminFR310XT) { LOG(LOG_INF) << "guessed: GarminFR310XT\n\n\n"; } + // if(prod==GarminFR405) { LOG(LOG_INF) << "guessed: GarminFR405\n\n\n"; } + //} + //else { LOG(LOG_WARN) << "guessing failed!\n"; } CHECK_RETURN_FALSE(m_antMessenger->ANTFS_Link(chan, fsFreq, beaconPer, hostSN)); |