From: Greg Davill Date: Sat, 18 Apr 2020 14:49:10 +0000 (+0930) Subject: fix flag decoding X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8b60ed4751c72281e6b53ae964d2ebfcbfa2f322;p=ecpprog.git fix flag decoding --- 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" );