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

Well, we better return something usefull instead of just false :-]

Please try again #178
This commit is contained in:
cpfeiffer 2015-12-09 17:54:54 +01:00
parent 6d7428ad29
commit 794ae6d800

View File

@ -73,6 +73,8 @@ public class DeviceInfo extends AbstractInfo {
", profileVersion=" + profileVersion +
", fwVersion=" + fwVersion +
", hwVersion=" + hwVersion +
", feature=" + feature +
", appearance=" + appearance +
'}';
}
@ -85,7 +87,8 @@ public class DeviceInfo extends AbstractInfo {
}
public boolean isMilli1S() {
return false; // FIXME: what to do here?
// TODO: this is probably not quite correct, but hopefully sufficient for early 1S support
return feature == 4 && appearance == 0 || feature == 4 && hwVersion == 4;
}
public String getHwVersion() {