1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-25 18:15:49 +01:00

Skagen Gen 6 Hybrid HR: Add support for 38mm watches.

Tested against https://www.watchstation.com/en-ca/products/jorn-38mm-gen-6-hybrid-smartwatch---silver-stainless-steel-mesh/SKT3301.html
This commit is contained in:
Hasan Ammar 2022-10-23 23:09:29 -04:00 committed by Gitea
parent 3a72a11e17
commit ef50599179
3 changed files with 7 additions and 9 deletions

View File

@ -84,6 +84,7 @@ public abstract class WatchAdapter {
return "Hybrid HR";
case "DN.1.0":
return "Hybrid HR Collider";
case "WA.0.0":
case "VA.0.0":
return "Fossil Gen. 6 Hybrid";
}

View File

@ -27,6 +27,7 @@ public final class WatchAdapterFactory {
if(hardwareVersion == '1') return new FossilHRWatchAdapter(deviceSupport);
if(firmwareVersion.startsWith("IV0")) return new FossilHRWatchAdapter(deviceSupport);
if(firmwareVersion.startsWith("VA")) return new FossilHRWatchAdapter(deviceSupport);
if(firmwareVersion.startsWith("WA")) return new FossilHRWatchAdapter(deviceSupport);
char major = firmwareVersion.charAt(6);
switch (major){

View File

@ -503,15 +503,13 @@ public class FossilWatchAdapter extends WatchAdapter {
String modelNumber = getDeviceSupport().getDevice().getModel();
switch (modelNumber) {
case "HW.0.0":
case "IV.0.0":
case "DN.1.0":
case "WA.0.0":
case "VA.0.0":
return true;
case "HL.0.0":
return false;
case "IV.0.0":
return true;
case "DN.1.0":
return true;
case "VA.0.0":
return true;
}
throw new UnsupportedOperationException("model " + modelNumber + " not supported");
}
@ -523,11 +521,9 @@ public class FossilWatchAdapter extends WatchAdapter {
case "HW.0.0":
return true;
case "HL.0.0":
return false;
case "IV.0.0":
return false;
case "DN.1.0":
return false;
case "WA.0.0":
case "VA.0.0":
return false;
}