if (verbose) printf("%s (%d bytes)\n", filename, size);
ANT_RequestMessage(chan, MESG_CHANNEL_STATUS_ID); //informative
if (offset+remaining < size) {
- int16_t crc = le16_read(blast + blsize - 1);
+ int16_t crc = le16_read(blast + blsize - 2);
printf("=> Starting download: %d %d %d\n", offset, remaining, size);
start_download(chan, antfsdir[downloadingfilenum].fileno,offset+remaining, crc, 0);
decode_antfs_dir(blast, blsize);
if (offset+remaining < size) {
- int16_t crc = le16_read(blast + blsize - 1);
+ int16_t crc = le16_read(blast + blsize - 2);
start_download(chan, 0, offset+remaining, crc, 0);
return 1;
}