Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Bug in DEMO_HR_RECEIVER Windows sample

Rank

Total Posts: 3

Joined 0

PM

Hi,
I want to report a bug in DEMO_HR_RECEIVER Windows sample.
I hope it will be fixed in next version for future users who try use this code.

Details:
in demo_hr_receiver.h you will see:
#define MESSAGE_TIMEOUT       (12) // = 12*2.5 = 30 seconds 


However this is not correct, this is not translated to 30 seconds,
because this value is used in DSIThread_CondTimedWait, which calls WaitForMultipleObjects and used as milliseconds.

The result of this incorrect value is many timeouts, as 12 ms is not enough in some systems when more than one sensor is used.

I would also suggest to add a way to get why DSIFramerANT::SendCommand,
failed (eg timeout...), eg another dedicated GetLastError, or return value not just BOOL.

Si.


     
Avatar
RankRankRankRank

Total Posts: 745

Joined 2012-09-14

PM

Thanks, Si, for the bug report.

We're doing some investigation into improving the USB drivers, so the feedback is appreciated.