summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/target/target.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/target.c b/src/target/target.c
index 286933f4..f3d63fcc 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -658,7 +658,7 @@ int target_run_algorithm(struct target *target,
LOG_ERROR("Target not examined yet");
goto done;
}
- if (target->type->run_algorithm) {
+ if (!target->type->run_algorithm) {
LOG_ERROR("Target type '%s' does not support %s",
target_type_name(target), __func__);
goto done;