mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 12:56: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:
parent
3a72a11e17
commit
ef50599179
@ -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";
|
||||
}
|
||||
|
@ -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){
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user