Get image length from the proper bytes

master
Philip Heron 2010-06-29 19:10:55 +01:00
rodzic 7d83c22f1f
commit 4300a99631
1 zmienionych plików z 1 dodań i 1 usunięć

2
c328.c
Wyświetl plik

@ -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);
}