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:
parent
2dcd95a1f5
commit
686ed312d6
@ -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());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user