We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2351b6c commit f80b76aCopy full SHA for f80b76a
1 file changed
ShimmerDriverPC/src/main/java/com/shimmerresearch/pcDriver/ShimmerPC.java
@@ -372,14 +372,6 @@ public void run(){
372
if (mSerialPort.isOpened() && mBluetoothRadioState!=BT_STATE.DISCONNECTED){
373
// if (mSerialPort.isOpened() && mState!=BT_STATE.NONE && mState!=BT_STATE.DISCONNECTED){
374
// setState(BT_STATE.CONNECTED);
375
- if (mSerialPort.isOpened()) {
376
- mSerialPort.purgePort(1);
377
- mSerialPort.purgePort(2);
378
- byte[] bytes = mSerialPort.readBytes(); // to be sure
379
- if (bytes != null) {
380
- consolePrintLn("Connected, Throwing Bytes = Length " + Integer.toString(bytes.length));
381
- }
382
383
setIsConnected(true);
384
385
mIOThread = new IOThread();
0 commit comments