Skip to content

Commit

Permalink
Bugfix: setting scope was impossible due to invalid check
Browse files Browse the repository at this point in the history
  • Loading branch information
philips77 committed Nov 3, 2017
1 parent 2c994b3 commit 8bdbe03
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8bdbe03

Please sign in to comment.