File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
ShimmerAndroidInstrumentDriver/shimmerConnectionTest/src/main/java/shimmerresearch/com/shimmerconnectiontest Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff 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 ));
You can’t perform that action at this time.
0 commit comments