Hi martinay,
thanks for your answer!
I have tried what you suggested (no timer) like this:
This does not produce errors but does not output anything ether… When I disconnect the device cable, there is an error »hid_read() returned error« (in »HID API Test Tool«).
When I add a print() to it like this:
Now I receive 8 bytes multiple times and after a vey short time I see the same error like without the print() multiple times (for every print-call!?).
The same code runs fine for hours on Mac/Windows.
Do you know about USB driver differences between Mac/Windows and Linux which could cause this? I am using LibUSB as a driver.
thanks for your answer!
I have tried what you suggested (no timer) like this:
- void loop(){
serial.poll();
}
This does not produce errors but does not output anything ether… When I disconnect the device cable, there is an error »hid_read() returned error« (in »HID API Test Tool«).
When I add a print() to it like this:
- void loop(){
serial.poll();
serial.print("?");
}
Now I receive 8 bytes multiple times and after a vey short time I see the same error like without the print() multiple times (for every print-call!?).
The same code runs fine for hours on Mac/Windows.
Do you know about USB driver differences between Mac/Windows and Linux which could cause this? I am using LibUSB as a driver.