First GetPacket Call Always Returns InvalidSize?
Quote from CorNic East on 21/06/2022, 15:52Is it the case that the very first call to GetPacket will always return InvalidSize?
I see in all of the examples that when using GetPacket, it is always checked for Empty and Ok before processing. Indeed, good code practice and absolutely necessary, but just checking for my sanity.
Is it the case that the very first call to GetPacket will always return InvalidSize?
I see in all of the examples that when using GetPacket, it is always checked for Empty and Ok before processing. Indeed, good code practice and absolutely necessary, but just checking for my sanity.
Quote from mm_dev on 27/06/2022, 12:03It generally takes quite some time between initalization of the device and data reaching the software. As the API is designed to be non-blocking, you should expect the first calls to GetPacket after StartDevice to fail/not return data.
It generally takes quite some time between initalization of the device and data reaching the software. As the API is designed to be non-blocking, you should expect the first calls to GetPacket after StartDevice to fail/not return data.