summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/ectool/ectool.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/util/ectool/ectool.c b/util/ectool/ectool.c
index 6d9668ded2..dcf17288f1 100644
--- a/util/ectool/ectool.c
+++ b/util/ectool/ectool.c
@@ -135,9 +135,8 @@ int main(int argc, char *argv[])
}
/* preserve default - dump_ram if nothing selected */
- if (!dump_ram && !dump_idx && !dump_query && !write_addr) {
+ if (!dump_ram && !dump_idx && !dump_query && (write_addr == -1))
dump_ram = 1;
- }
if (dump_ram) {
printf("EC RAM:\n");