File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
java/libraries/io/src/processing/io Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ public void endTransmission() {
125125 transmitting = false ;
126126 out = null ;
127127 if (ret < 0 ) {
128- if (ret == -5 ) { // EIO
128+ if (ret == -5 | ret == - 121 ) { // EIO | EREMOTEIO
129129 System .err .println ("The device did not respond. Check the cabling and whether you are using the correct address." );
130130 }
131131 throw new RuntimeException (NativeInterface .getError (ret ));
@@ -185,7 +185,7 @@ public byte[] read(int len) {
185185 transmitting = false ;
186186 out = null ;
187187 if (ret < 0 ) {
188- if (ret == -5 ) { // EIO
188+ if (ret == -5 | ret == - 121 ) { // EIO | EREMOTEIO
189189 System .err .println ("The device did not respond. Check the cabling and whether you are using the correct address." );
190190 }
191191 throw new RuntimeException (NativeInterface .getError (ret ));
You can’t perform that action at this time.
0 commit comments