mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-25 16:15:55 +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) {
|
private void handleDeviceInfo(byte[] value, int status) {
|
||||||
if (status == BluetoothGatt.GATT_SUCCESS) {
|
if (status == BluetoothGatt.GATT_SUCCESS) {
|
||||||
getDevice().setFirmwareVersion(value.length + ":" + new String(value));
|
DeviceInfo info = new DeviceInfo(value);
|
||||||
|
getDevice().setFirmwareVersion(info.getFirmwareVersion());
|
||||||
getDevice().sendDeviceUpdateIntent(getContext());
|
getDevice().sendDeviceUpdateIntent(getContext());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user