-int read_part_id(t_lpc *lpc) {
-
- char buf[BUFSIZE];
-
- memcpy(buf,"J\r\n",3);
- txrx(lpc,buf,3,TXRX_TYPE_CMD);
- lpc->partid=atoi(buf);
-
- return lpc->partid;
-}
-
-int read_bcv(t_lpc *lpc) {
-
- char buf[BUFSIZE];
- char *ptr;
-
- memcpy(buf,"K\r\n",3);
- txrx(lpc,buf,3,TXRX_TYPE_CMD);
- ptr=strtok(buf,"\r\n");
- lpc->bcv[0]=strtol(ptr,NULL,16);
- ptr=strtok(NULL,"\r\n");
- lpc->bcv[1]=strtol(ptr,NULL,16);
-
- return 0;
-}
-