]> git.sur5r.net Git - u-boot/blobdiff - post/board/lwmon5/dspic.c
Some fixes to dspic, fpga, and gdc post tests for lwmon5.
[u-boot] / post / board / lwmon5 / dspic.c
index e8fed89ba46f4677dcc4c3e5c17cc1036fa3bc26..f1c9c153fb7a1aaac7f03a569ed4b043b961e16f 100644 (file)
@@ -94,9 +94,9 @@ int dspic_post_test(int flags)
        }
 
        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);
        }