From 86aea3eaefa248ffb9328e2b50c64720489cdbeb Mon Sep 17 00:00:00 2001 From: Yuri Tikhonov Date: Fri, 21 Mar 2008 09:18:40 +0100 Subject: LWMON5: fix dsPIC POST Add test for DPIC_SYS_ERROR_REG to be zero in the LWMON5 dsPIC POST. Signed-off-by: Yuri Tikhonov --- --- post/board/lwmon5/dspic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'post/board/lwmon5') diff --git a/post/board/lwmon5/dspic.c b/post/board/lwmon5/dspic.c index 65b96bc..dbaa074 100644 --- a/post/board/lwmon5/dspic.c +++ b/post/board/lwmon5/dspic.c @@ -97,8 +97,9 @@ int dspic_post_test(int flags) if (data == -1) { post_log("dsPIC : failed read system error\n"); ret = 1; - } else { + } else if (data != 0) { post_log("dsPIC SYS-ERROR code: 0x%04X\n", data); + ret = 1; } return ret; -- cgit v1.1