From 85bfa7dcf9ba302850e72d88ceb4d701cefb2328 Mon Sep 17 00:00:00 2001 From: James Cotton Date: Thu, 26 Jan 2012 13:32:53 -0600 Subject: [PATCH] Flashfs: Missed calculation of the header crc for monolitihic write --- flight/PiOS/Common/pios_flashfs_objlist.c | 1 + 1 file changed, 1 insertion(+) diff --git a/flight/PiOS/Common/pios_flashfs_objlist.c b/flight/PiOS/Common/pios_flashfs_objlist.c index 7b6af564d..d8d669f05 100644 --- a/flight/PiOS/Common/pios_flashfs_objlist.c +++ b/flight/PiOS/Common/pios_flashfs_objlist.c @@ -249,6 +249,7 @@ int32_t PIOS_FLASHFS_ObjSave(UAVObjHandle obj, uint16_t instId, uint8_t * data) }; // Update CRC + crc = PIOS_CRC_updateCRC(0, (uint8_t *) &header, sizeof(header)); crc = PIOS_CRC_updateCRC(crc, (uint8_t *) data, UAVObjGetNumBytes(obj)); if(PIOS_Flash_Jedec_EraseSector(addr) != 0)