Some fixes to dspic, fpga, and gdc post tests for lwmon5. Disable external watch-dog for now.
Signed-off-by: Dmitry Rakhchev <rda@emcraft.com>
Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
diff --git a/post/board/lwmon5/dspic.c b/post/board/lwmon5/dspic.c
index 897a852..65b96bc 100644
--- a/post/board/lwmon5/dspic.c
+++ b/post/board/lwmon5/dspic.c
@@ -94,9 +94,9 @@
}
data = dspic_read(DSPIC_SYS_ERROR_REG);
- if (data != 0) ret = 1;
if (data == -1) {
post_log("dsPIC : failed read system error\n");
+ ret = 1;
} else {
post_log("dsPIC SYS-ERROR code: 0x%04X\n", data);
}