Mercurial > public > ostc4
comparison Discovery/Src/logbook.c @ 430:30580cf5ee77
Merged in Ideenmodellierer/ostc4/ImprovmentNVM_2 (pull request #39)
ImprovmentNVM 2
author | heinrichsweikamp <bitbucket@heinrichsweikamp.com> |
---|---|
date | Tue, 18 Feb 2020 07:20:29 +0000 |
parents | b1091e183d52 |
children | ee1434824c3f |
comparison
equal
deleted
inserted
replaced
419:c2264ce139cb | 430:30580cf5ee77 |
---|---|
1185 pSettings->personalDiveCount++; | 1185 pSettings->personalDiveCount++; |
1186 if(pSettings->logbookOffset) | 1186 if(pSettings->logbookOffset) |
1187 { | 1187 { |
1188 pSettings->logbookOffset++; | 1188 pSettings->logbookOffset++; |
1189 } | 1189 } |
1190 ext_flash_write_settings(); | 1190 ext_flash_write_settings(0); |
1191 ext_flash_disable_protection_for_logbook(); | 1191 ext_flash_disable_protection_for_logbook(); |
1192 | |
1193 ext_flash_CloseSector(); /* this is just a repair function which invalidates a not used sector in case a log maintenance was called before dive */ | |
1192 bDiveMode = 3; | 1194 bDiveMode = 3; |
1193 } | 1195 } |
1194 if(bDiveMode == 3) | 1196 if(bDiveMode == 3) |
1195 logbook_UpdateHeader(pStateReal); | 1197 logbook_UpdateHeader(pStateReal); |
1196 } | 1198 } |