Prevent firmware update for Mi Band 1A for now #136

here
cpfeiffer 2015-10-18 22:57:04 +02:00
parent 8d62a16176
commit ef15bf8ce8
1 changed files with 3 additions and 0 deletions

View File

@ -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(":");