aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/jtag/zy1000/zy1000.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/jtag/zy1000/zy1000.c b/src/jtag/zy1000/zy1000.c
index 2fac1767..b3f94e5c 100644
--- a/src/jtag/zy1000/zy1000.c
+++ b/src/jtag/zy1000/zy1000.c
@@ -434,10 +434,9 @@ zylinjtag_Jim_Command_powerstatus(Jim_Interp *interp,
return JIM_ERR;
}
- uint32_t status;
- ZY1000_PEEK(ZY1000_JTAG_BASE + 0x10, status);
+ bool dropout = readPowerDropout();
- Jim_SetResult(interp, Jim_NewIntObj(interp, (status&0x80) != 0));
+ Jim_SetResult(interp, Jim_NewIntObj(interp, dropout));
return JIM_OK;
}