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
|
@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(":");
|
||||||
|
|
Loading…
Reference in New Issue