File tree Expand file tree Collapse file tree
ShimmerDriver/src/main/java/com/shimmerresearch/driver Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -756,7 +756,11 @@ public void addCommunicationRoute(COMMUNICATION_TYPE communicationType) {
756756// Collections.sort(mListOfAvailableCommunicationTypes);
757757
758758 if (communicationType ==COMMUNICATION_TYPE .DOCK ){
759- setIsDocked (true );
759+ if (mDockID .contains (DEVICE_TYPE .SHIMMER3R .toString ())) {
760+ setIsUsbPluggedIn (true );
761+ }else {
762+ setIsDocked (true );
763+ }
760764 }
761765
762766 //TODO temp here -> check if the best place for it
@@ -782,7 +786,8 @@ public void removeCommunicationRoute(COMMUNICATION_TYPE communicationType) {
782786 }
783787// Collections.sort(mListOfAvailableCommunicationTypes);
784788
785- if (communicationType ==COMMUNICATION_TYPE .DOCK ){
789+ if (communicationType ==COMMUNICATION_TYPE .DOCK ){
790+ setIsUsbPluggedIn (false );
786791 setIsDocked (false );
787792 setFirstDockRead ();
788793 clearDockInfo (mDockID , mSlotNumber );
You can’t perform that action at this time.
0 commit comments