mirror of
https://github.com/linux-msm/openocd.git
synced 2026-02-25 13:15:07 -08:00
zy1000: fix tcl command to read power dropout status
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user