Skip to content

Commit f80b76a

Browse files
committed
Update ShimmerPC.java
undo change
1 parent 2351b6c commit f80b76a

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

  • ShimmerDriverPC/src/main/java/com/shimmerresearch/pcDriver

ShimmerDriverPC/src/main/java/com/shimmerresearch/pcDriver/ShimmerPC.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -372,14 +372,6 @@ public void run(){
372372
if (mSerialPort.isOpened() && mBluetoothRadioState!=BT_STATE.DISCONNECTED){
373373
// if (mSerialPort.isOpened() && mState!=BT_STATE.NONE && mState!=BT_STATE.DISCONNECTED){
374374
// 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-
}
383375
setIsConnected(true);
384376

385377
mIOThread = new IOThread();

0 commit comments

Comments
 (0)