Extracted String "HR: ", (= Heart Rate Firmware Version)
This commit is contained in:
parent
ce382198d1
commit
3714ec82da
|
@ -834,7 +834,9 @@ public class MiBandSupport extends AbstractBTLEDeviceSupport {
|
|||
if (status == BluetoothGatt.GATT_SUCCESS) {
|
||||
mDeviceInfo = new DeviceInfo(value);
|
||||
if (getDeviceInfo().supportsHeartrate()) {
|
||||
getDevice().addDeviceInfo(new GenericItem("HR:", MiBandFWHelper.formatFirmwareVersion(mDeviceInfo.getHeartrateFirmwareVersion())));
|
||||
getDevice().addDeviceInfo(new GenericItem(
|
||||
getContext().getString(R.string.DEVINFO_HR_VER),
|
||||
MiBandFWHelper.formatFirmwareVersion(mDeviceInfo.getHeartrateFirmwareVersion())));
|
||||
}
|
||||
LOG.warn("Device info: " + mDeviceInfo);
|
||||
versionCmd.hwVersion = mDeviceInfo.getHwVersion();
|
||||
|
|
|
@ -234,5 +234,6 @@
|
|||
<string name="device_hw">HW: %1$s</string>
|
||||
<string name="device_fw">FW: %1$s</string>
|
||||
<string name="error_creating_directory_for_logfiles">Error creating directory for log files: %1$s</string>
|
||||
<string name="DEVINFO_HR_VER">"HR: "</string>
|
||||
|
||||
</resources>
|
||||
|
|
Loading…
Reference in New Issue