Bugfix: setting scope was impossible due to invalid check

This commit is contained in:
Aleksander Nowakowski 2017-11-03 17:22:30 +01:00
parent 2c994b36cd
commit 8bdbe03879
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ public class DfuServiceInitiator {
* @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;