We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41a52e7 commit 0bb5b77Copy full SHA for 0bb5b77
java/libraries/io/src/native/impl.c
@@ -323,6 +323,9 @@ JNIEXPORT jint JNICALL Java_processing_io_NativeInterface_transferI2c
323
packets.nmsgs++;
324
}
325
326
+ // set the timeout to 100ms - this helps slow devices such as the
327
+ // Arduino Uno to keep up
328
+ ioctl(handle, I2C_TIMEOUT, 10);
329
int ret = ioctl(handle, I2C_RDWR, &packets);
330
if (ret < 0) {
331
ret = -errno;
0 commit comments