1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-27 20:36:51 +01:00

#15 properly return firmware version

This commit is contained in:
cpfeiffer 2015-04-19 22:23:53 +02:00
parent 2dcd95a1f5
commit 686ed312d6

View File

@ -180,7 +180,8 @@ public class MiBandSupport extends AbstractBTLEDeviceSupport {
private void handleDeviceInfo(byte[] value, int status) {
if (status == BluetoothGatt.GATT_SUCCESS) {
getDevice().setFirmwareVersion(value.length + ":" + new String(value));
DeviceInfo info = new DeviceInfo(value);
getDevice().setFirmwareVersion(info.getFirmwareVersion());
getDevice().sendDeviceUpdateIntent(getContext());
}
}