comparison Discovery/Inc/externLogbookFlash.h @ 453:1c0b911c367f minor_improvments

Added compile variant enabling the reset of profile sample information: In case the sample ring has an overrun prior to the header ring then header will point to no longer available sample locations causing problems when the no longer existing samples are read. To avoid this also in earlier versions a variant has been added which enables the user to reset the invalid sample information by selecting the problematic dive in the infolog menu and pressing the middle button. Added function which confirms consistency of dive log settings: Meaning last dive and dive header are valid at startup. Repair and find lastDiveID are only called in case a inconsistency is detected
author ideenmodellierer
date Tue, 24 Mar 2020 21:59:38 +0100
parents 0e5341951079
children e4f6afd9c96b
comparison
equal deleted inserted replaced
452:b90ddf57f7f1 453:1c0b911c367f
147 void ext_flash_erase_firmware2(void); 147 void ext_flash_erase_firmware2(void);
148 void ext_flash_disable_protection_for_logbook(void); 148 void ext_flash_disable_protection_for_logbook(void);
149 void ext_flash_enable_protection(void); 149 void ext_flash_enable_protection(void);
150 150
151 void ext_flash_read_block_start(void); 151 void ext_flash_read_block_start(void);
152 152 uint8_t ext_dive_log_consistent(void);
153 void ext_flash_repair_dive_log(void); 153 void ext_flash_repair_dive_log(void);
154 154
155 uint8_t ext_flash_erase_firmware_if_not_empty(void); 155 uint8_t ext_flash_erase_firmware_if_not_empty(void);
156 uint8_t ext_flash_erase_firmware2_if_not_empty(void); 156 uint8_t ext_flash_erase_firmware2_if_not_empty(void);
157 void ext_flash_write_firmware(uint8_t *pSample1, uint32_t length1);//,uint8_t *pSample2, uint32_t length2); 157 void ext_flash_write_firmware(uint8_t *pSample1, uint32_t length1);//,uint8_t *pSample2, uint32_t length2);
163 163
164 uint16_t ext_flash_repair_SPECIAL_dive_numbers_starting_count_with(uint16_t startCount); 164 uint16_t ext_flash_repair_SPECIAL_dive_numbers_starting_count_with(uint16_t startCount);
165 165
166 uint32_t ext_flash_AnalyseSampleBuffer(char *pstrResult); 166 uint32_t ext_flash_AnalyseSampleBuffer(char *pstrResult);
167 void ext_flash_CloseSector(void); 167 void ext_flash_CloseSector(void);
168 void ext_flash_invalidate_sample_index(uint32_t sectorStart);
168 169
169 #endif /* EXTERN_LOGBOOK_FLASH_H */ 170 #endif /* EXTERN_LOGBOOK_FLASH_H */