Skip to content
This repository was archived by the owner on Aug 9, 2022. It is now read-only.

Commit 25831fd

Browse files
author
Federico Fissore
committed
restored original version
restored thread.sleep millis: can cause problem on some java versions
1 parent 37fad90 commit 25831fd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/SerialImp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4293,7 +4293,7 @@ RXTXVersion.nativeGetVersion
42934293
JNIEXPORT jstring JNICALL RXTXVersion(nativeGetVersion) (JNIEnv *env,
42944294
jclass jclazz )
42954295
{
4296-
return (*env)->NewStringUTF( env, "RXTX-2.2 http://PixelInvaders.ch low latency edition" );
4296+
return (*env)->NewStringUTF( env, "RXTX-2.2" );
42974297
}
42984298

42994299
/*----------------------------------------------------------

src/gnu/io/RXTXPort.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ protected void waitForTheNativeCodeSilly()
892892
while( MonitorThreadLock )
893893
{
894894
try {
895-
Thread.sleep(1);
895+
Thread.sleep(5);
896896
} catch( Exception e ) {}
897897
}
898898
}

src/gnu/io/RXTXVersion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public class RXTXVersion
7676

7777
static {
7878
RXTXVersion.loadLibrary( "rxtxSerial" );
79-
Version = "RXTX-2.2 http://PixelInvaders.ch low latency edition";
79+
Version = "RXTX-2.2";
8080
}
8181
/**
8282
* static method to return the current version of RXTX

0 commit comments

Comments
 (0)