瀏覽代碼

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)