From 8b60ed4751c72281e6b53ae964d2ebfcbfa2f322 Mon Sep 17 00:00:00 2001 From: Greg Davill Date: Sun, 19 Apr 2020 00:19:10 +0930 Subject: [PATCH] fix flag decoding --- ecpprog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ecpprog.c b/ecpprog.c index 4884a1c..a899b47 100644 --- a/ecpprog.c +++ b/ecpprog.c @@ -463,7 +463,7 @@ static void print_status_register(uint32_t status){ if(verbose){ printf(" Transparent Mode: %s\n", status & (1 << 0) ? "Yes" : "No" ); - printf(" Config Target: %s\n", status & (7 << 1) ? "SRAM" : "eFuse" ); + printf(" Config Target: %s\n", status & (7 << 1) ? "eFuse" : "SRAM" ); printf(" JTAG Active: %s\n", status & (1 << 4) ? "Yes" : "No" ); printf(" PWD Protection: %s\n", status & (1 << 5) ? "Yes" : "No" ); printf(" Decrypt Enable: %s\n", status & (1 << 7) ? "Yes" : "No" ); -- 2.30.2