mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 21:06:50 +01:00
Prevent firmware update for Mi Band 1A for now #136
This commit is contained in:
parent
8d62a16176
commit
ef15bf8ce8
@ -38,6 +38,9 @@ public class UpdateFirmwareOperation extends AbstractBTLEOperation<MiBandSupport
|
||||
|
||||
@Override
|
||||
public void perform() throws IOException {
|
||||
if (getSupport().getDeviceInfo().isMili1A()) {
|
||||
throw new IOException("Firmware update is not supported for the Mi Band 1A, yet.");
|
||||
}
|
||||
MiBandFWHelper mFwHelper = new MiBandFWHelper(uri, getContext());
|
||||
String mMac = getDevice().getAddress();
|
||||
String[] mMacOctets = mMac.split(":");
|
||||
|
Loading…
Reference in New Issue
Block a user