mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-16 04:37:33 +01:00
If firmwareRevision is null, use softwareRevision
This commit is contained in:
parent
92bd3122f3
commit
ec0d62f67b
@ -1319,8 +1319,10 @@ public class HuamiSupport extends AbstractBTLEDeviceSupport {
|
|||||||
|
|
||||||
LOG.warn("Device info: " + info);
|
LOG.warn("Device info: " + info);
|
||||||
versionCmd.hwVersion = info.getHardwareRevision();
|
versionCmd.hwVersion = info.getHardwareRevision();
|
||||||
// versionCmd.fwVersion = info.getFirmwareRevision(); // always null
|
versionCmd.fwVersion = info.getFirmwareRevision();
|
||||||
versionCmd.fwVersion = info.getSoftwareRevision();
|
if (versionCmd.fwVersion == null) {
|
||||||
|
versionCmd.fwVersion = info.getSoftwareRevision();
|
||||||
|
}
|
||||||
if (versionCmd.fwVersion != null && versionCmd.fwVersion.length() > 0 && versionCmd.fwVersion.charAt(0) == 'V') {
|
if (versionCmd.fwVersion != null && versionCmd.fwVersion.length() > 0 && versionCmd.fwVersion.charAt(0) == 'V') {
|
||||||
versionCmd.fwVersion = versionCmd.fwVersion.substring(1);
|
versionCmd.fwVersion = versionCmd.fwVersion.substring(1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user