diff --git a/dfu/src/main/java/no/nordicsemi/android/dfu/DfuServiceInitiator.java b/dfu/src/main/java/no/nordicsemi/android/dfu/DfuServiceInitiator.java index 528cfa5d..82533e77 100644 --- a/dfu/src/main/java/no/nordicsemi/android/dfu/DfuServiceInitiator.java +++ b/dfu/src/main/java/no/nordicsemi/android/dfu/DfuServiceInitiator.java @@ -200,7 +200,7 @@ public DfuServiceInitiator setForceDfu(final boolean force) { * @return the builder */ public DfuServiceInitiator setScope(final int scope) { - if (DfuBaseService.MIME_TYPE_ZIP.equals(mimeType)) + if (!DfuBaseService.MIME_TYPE_ZIP.equals(mimeType)) throw new UnsupportedOperationException("Scope can be set only for a ZIP file"); if (scope == SCOPE_APPLICATION) fileType = DfuBaseService.TYPE_APPLICATION;