Skip to content

Commit 366acf7

Browse files
committed
updates
1 parent 8b773be commit 366acf7

File tree

1 file changed

+0
-20
lines changed
  • ShimmerAndroidInstrumentDriver/shimmerConnectionTest/src/main/java/shimmerresearch/com/shimmerconnectiontest

1 file changed

+0
-20
lines changed

ShimmerAndroidInstrumentDriver/shimmerConnectionTest/src/main/java/shimmerresearch/com/shimmerconnectiontest/MainActivity.java

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -216,16 +216,6 @@ public void run() {
216216
//shimmer = null;
217217
//shimmer = new Shimmer(mHandler);
218218
//shimmer.connect(macAdd, "default");
219-
ShimmerDevice device = btManager.getShimmer(macAdd);
220-
if (device!=null)
221-
if (!device.getBluetoothRadioState().equals(ShimmerBluetooth.BT_STATE.DISCONNECTED)){
222-
try {
223-
device.disconnect();
224-
} catch (ShimmerException e) {
225-
e.printStackTrace();
226-
}
227-
}
228-
device = null;
229219
Log.i(LOG_TAG, "Connect Called, retry count: " + Integer.toString(retryCount) + "; Total number of retries:" + totalRetries);
230220
btManager.removeShimmerDeviceBtConnected(macAdd);
231221
btManager.putShimmerGlobalMap(macAdd,new Shimmer(mHandler));
@@ -333,16 +323,6 @@ public void run() {
333323
//shimmer = null;
334324
//shimmer = new Shimmer(mHandler);
335325
//shimmer.connect(macAdd, "default");
336-
ShimmerDevice device = btManager.getShimmer(macAdd);
337-
if (device!=null)
338-
if (!device.getBluetoothRadioState().equals(ShimmerBluetooth.BT_STATE.DISCONNECTED)){
339-
try {
340-
device.disconnect();
341-
} catch (ShimmerException e) {
342-
e.printStackTrace();
343-
}
344-
}
345-
device = null;
346326
Log.i(LOG_TAG, "Connect Called, retry count: " + Integer.toString(retryCount) + "; Total number of retries:" + totalRetries);
347327
btManager.removeShimmerDeviceBtConnected(macAdd);
348328
btManager.putShimmerGlobalMap(macAdd,new Shimmer(mHandler));

0 commit comments

Comments
 (0)