{
return DELUGE_IDENT_SIZE + currentPage * sizeof(uint16_t);
}
-
+
uint32_t calcPageAddr()
{
return DELUGE_IDENT_SIZE + DELUGE_CRC_BLOCK_SIZE + currentPage * DELUGE_BYTES_PER_PAGE;
state = S_READ_IDENT;
currentImageIdx = 0;
currentVolume = _imgNum2volumeId[currentImageIdx];
- nextImage();
+ nextImage();
}
command error_t DelugeMetadata.read[uint8_t client](uint8_t imgNum)
call BlockRead.read[currentVolume](calcCrcAddr(), ¤tCrc, sizeof(currentCrc));
} else {
currentImageIdx++;
+ currentVolume = _imgNum2volumeId[currentImageIdx];
nextImage();
}
}
call BlockRead.read[currentVolume](calcCrcAddr(), ¤tCrc, sizeof(currentCrc));
} else {
currentImageIdx++;
- currentVolume = _imgNum2volumeId[currentImageIdx];
+ currentVolume = _imgNum2volumeId[currentImageIdx];
nextImage();
}
}