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.