1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-01 06:22:55 +01:00

added Hybrid HR base support

This commit is contained in:
dakhnod 2019-11-21 21:00:35 +01:00
parent e0afa0833c
commit ecc8ae9175
2 changed files with 12 additions and 0 deletions

View File

@ -233,6 +233,8 @@ public class FossilWatchAdapter extends WatchAdapter {
return true; return true;
case "HL.0.0": case "HL.0.0":
return false; return false;
case "DN.1.0":
return true;
} }
throw new UnsupportedOperationException("model " + modelNumber + " not supported"); throw new UnsupportedOperationException("model " + modelNumber + " not supported");
} }
@ -245,6 +247,8 @@ public class FossilWatchAdapter extends WatchAdapter {
return true; return true;
case "HL.0.0": case "HL.0.0":
return false; return false;
case "DN.1.0":
return false;
} }
throw new UnsupportedOperationException("Model " + modelNumber + " not supported"); throw new UnsupportedOperationException("Model " + modelNumber + " not supported");
} }
@ -257,6 +261,8 @@ public class FossilWatchAdapter extends WatchAdapter {
return "Q Commuter"; return "Q Commuter";
case "HL.0.0": case "HL.0.0":
return "Q Activist"; return "Q Activist";
case "DN.1.0":
return "Hybrid HR";
} }
return "unknwon Q"; return "unknwon Q";
} }

View File

@ -410,6 +410,8 @@ public class MisfitWatchAdapter extends WatchAdapter {
return true; return true;
case "HL.0.0": case "HL.0.0":
return false; return false;
case "DN.1.0":
return true;
} }
throw new UnsupportedOperationException("Model " + modelNumber + " not supported"); throw new UnsupportedOperationException("Model " + modelNumber + " not supported");
} }
@ -422,6 +424,8 @@ public class MisfitWatchAdapter extends WatchAdapter {
return true; return true;
case "HL.0.0": case "HL.0.0":
return false; return false;
case "DN.1.0":
return false;
} }
throw new UnsupportedOperationException("Model " + modelNumber + " not supported"); throw new UnsupportedOperationException("Model " + modelNumber + " not supported");
} }
@ -434,6 +438,8 @@ public class MisfitWatchAdapter extends WatchAdapter {
return "Q Commuter"; return "Q Commuter";
case "HL.0.0": case "HL.0.0":
return "Q Activist"; return "Q Activist";
case "DN.1.0":
return "Hybrid HR";
} }
return "unknwon Q"; return "unknwon Q";
} }