From f7b75f728919c2c65394e94cf58b074dffdda7df Mon Sep 17 00:00:00 2001 From: Rutger Hofman Date: Wed, 13 May 2009 17:38:15 +0000 Subject: [PATCH] Silly omission of != URJ_STATUS_OK in src/cmd/cmd_peekpoke.c git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1593 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- urjtag/src/cmd/cmd_peekpoke.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/urjtag/src/cmd/cmd_peekpoke.c b/urjtag/src/cmd/cmd_peekpoke.c index b1b05fd4..0e4e4d4b 100644 --- a/urjtag/src/cmd/cmd_peekpoke.c +++ b/urjtag/src/cmd/cmd_peekpoke.c @@ -144,7 +144,7 @@ cmd_poke_run (urj_chain_t *chain, char *params[]) while (k < pars) { if (urj_cmd_get_number (params[k], &adr) != URJ_STATUS_OK - || urj_cmd_get_number (params[k + 1], &val)) + || urj_cmd_get_number (params[k + 1], &val) != URJ_STATUS_OK) return URJ_STATUS_FAIL; URJ_BUS_AREA (urj_bus, adr, &area); URJ_BUS_WRITE (urj_bus, adr, val);