mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
Prevent firmware update for Mi Band 1A for now #136
This commit is contained in:
@@ -38,6 +38,9 @@ public class UpdateFirmwareOperation extends AbstractBTLEOperation<MiBandSupport
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void perform() throws IOException {
|
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());
|
MiBandFWHelper mFwHelper = new MiBandFWHelper(uri, getContext());
|
||||||
String mMac = getDevice().getAddress();
|
String mMac = getDevice().getAddress();
|
||||||
String[] mMacOctets = mMac.split(":");
|
String[] mMacOctets = mMac.split(":");
|
||||||
|
Reference in New Issue
Block a user