Windows 7 32 bit Problem: Carriage Return every 64 chars? #126
Labels
No labels
3rdparty
Android
API
Author does not respond
bsd
bug
build system/CI
ci-virtual-device
CMake
Contributions Welcome
Core
dependencies
device-specific
documentation
don't_merge
duplicate
enhancement
Example
Haiku
hidraw
hotplug
info required
invalid
libusb
macOS
Misc
Not an issue
question
Release
Test
Test GUI
Windows
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-libusb/hidapi#126
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I am using hid_read_timeout read measurement data from a HID device. This works fine under Linux and Windows 10 64 bit. Usually, I do
hid_read_timeout( _handle, readBuf, MAX_STR, static_cast(_recvTimeout->value()*1000) );
and scan the buffer until I find a Carriage Return. In Linux and Windows 64 bit the length of the buffer until carriage return is about 180. However, My software was used on a Windows 7 32 bit machine and there my buffers contain a Carriage Return already after 64 characters. What could be a possible reason?
Hi @maxwell130631,
Unfortunately you didn't provide enough info for us to even try help you.
MAX_STR?readBuf(I'd assume it isMAX_STRsize, but who knows)?\rappears early?\r)?A code sample of you read (and
\rsearch) routine should also help identify where the problem might be.Close the issue since the OP does not come back.
To OP: please reopen if provide more info.