Part ID response format is probably hexidecimal.
@@ -102,7 +102,7 @@ int lpc_read_partid(struct lpc_device *dev) {
res = lpc_command("J\r\n");
if(res!=0)
return res;
- scanf("%u\r\n", &partid);
+ scanf("0x%x\r\n", &partid);
for(i=0; lpc_parts[i].name; i++)
if(lpc_parts[i].part_id==partid)
break;