Skip to content
Snippets Groups Projects
Commit 86aea3ea authored by Yuri Tikhonov's avatar Yuri Tikhonov Committed by Wolfgang Denk
Browse files

LWMON5: fix dsPIC POST

Add test for DPIC_SYS_ERROR_REG to be zero in the LWMON5 dsPIC POST.

Signed-off-by: Yuri Tikhonov <yur@emcraft.com> ---
parent b73a19e1
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment