kopia lustrzana https://github.com/fsphil/hadie
Get image length from the proper bytes
rodzic
7d83c22f1f
commit
4300a99631
2
c328.c
2
c328.c
|
@ -147,7 +147,7 @@ char c3_get_picture(uint8_t pt, uint16_t *length)
|
|||
if(c3_rx(PIC_TIMEOUT) != CMD_DATA) return(-1);
|
||||
|
||||
/* Get the file size from the DATA args */
|
||||
*length = rxbuf[9] + (rxbuf[10] << 8);
|
||||
*length = rxbuf[3] + (rxbuf[4] << 8);
|
||||
|
||||
return(0);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue