소스 검색

Some more debugging

Print command return code after invoking 'Read part ID' command.
Mateusz Bugdalski 13 년 전
부모
커밋
cc7fd4336b
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      lpc.c

+ 1 - 0
lpc.c

@@ -100,6 +100,7 @@ int lpc_read_partid(struct lpc_device *dev) {
   int res;
   int partid;
   res = lpc_command("J\r\n");
+  sprog_error("Command return code is %d\n", res);
   if(res!=0)
     return res;
   if(scanf("%d\r\n", &partid)<1)