Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -706,8 +706,9 @@ public void addDOCKCoummnicationRoute(String dockId, int slotNumber) {
addCommunicationRoute(COMMUNICATION_TYPE.DOCK);
}

public void clearDockInfo(){
setDockInfo(DEFAULT_DOCKID, DEFAULT_SLOTNUMBER);
public void clearDockInfo(String dockId, int slotNumber){
setDockInfo(dockId, slotNumber);
// setDockInfo(DEFAULT_DOCKID, DEFAULT_SLOTNUMBER);
}

public void setDockInfo(String dockId, int slotNumber){
Expand Down Expand Up @@ -753,7 +754,7 @@ public void removeCommunicationRoute(COMMUNICATION_TYPE communicationType) {
if(communicationType==COMMUNICATION_TYPE.DOCK){
setIsDocked(false);
setFirstDockRead();
clearDockInfo();
clearDockInfo(mDockID, mSlotNumber);
}

//TODO temp here -> check if the best place for it
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public static enum DEVICE_TYPE {
SHIMMER3("Shimmer3"),
SHIMMER3_OUTPUT("OUTPUT"),
SHIMMER_ECG_MD("ShimmerECGmd"),
SHIMMER3R("Shimmer3R"),
SHIMMER4("Shimmer4"),

LUMAFIT("Lumafit"),
Expand Down Expand Up @@ -106,8 +107,8 @@ public static final class SH_SEARCH {
};

public static final class MASS_STORAGE_DEVICE {
public static final String[] HARDWARD_ID = new String[] {
"VID_0424&PID_4050",
public static final String[] HARDWARE_ID = new String[] {
"VID_0424&PID_4050", // Docks and Bases
};
public static final String[] BUS_DESCRIPTION = new String[] {
"SHIMMER",
Expand All @@ -133,15 +134,23 @@ public static final class MASS_STORAGE_DEVICE {
public static final String[] COMP_DEV_BASE = new String[] {
"VID_0403&PID_6011",
};

public static final String[] USB_HUB = new String[] {
"VID_0424&PID_2640",
};

public static final String[] SHIMMER_3R = new String[] {
"VID_0483&PID_52A4",
};

public static final String[] SHIMMER = new String[] {
"shimmer",
};

public static final String[] SHIMMER3R_COMPOSITE_DEVICE = new String[] { "SHIMMER COMPOSITE DEVICE" };

public static final String[] SHIMMER3R_MSC_DEVICE = new String[] { "SHIMMER MSC DEVICE" };

public static final class SERVICE_DESCRIPTION {
public static final String[] COMPOSITE_DEVICE = new String[]{"USB Composite Device"};

Expand Down