Skip to content

Commit ccdcd7d

Browse files
committed
Condition fixed
1 parent e2ea5dd commit ccdcd7d

File tree

1 file changed

+1
-1
lines changed
  • mcumgr-core/src/main/java/io/runtime/mcumgr/dfu/task

1 file changed

+1
-1
lines changed

mcumgr-core/src/main/java/io/runtime/mcumgr/dfu/task/Validate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public void onResponse(@NotNull final McuMgrImageStateResponse response) {
238238
}
239239
if (!found) {
240240
performer.enqueue(new Upload(mcuMgrImage.getData(), imageIndex));
241-
if (mcuMgrImage.needsConfirmation() && !allowRevert || mode == Mode.NONE) {
241+
if (mcuMgrImage.needsConfirmation() && (!allowRevert || mode == Mode.NONE)) {
242242
resetRequired = true;
243243
}
244244
}

0 commit comments

Comments
 (0)