Mercurial > public > ostc4
diff Discovery/Src/data_central.c @ 149:e1d66bc78f9a FlipDisplay
Eliminate warnings
author | Ideenmodellierer |
---|---|
date | Sat, 02 Mar 2019 17:42:06 +0100 |
parents | cc9c18075e00 |
children | 2bb1db22b5f5 |
line wrap: on
line diff
--- a/Discovery/Src/data_central.c Sat Mar 02 17:01:06 2019 +0100 +++ b/Discovery/Src/data_central.c Sat Mar 02 17:42:06 2019 +0100 @@ -529,7 +529,6 @@ void setActualGasAir(SLifeData *lifeData) { - SSettings* pSettings = settingsGetPointer(); uint8_t nitrogen; nitrogen = 79; lifeData->actualGas.GasIdInSettings = 0; @@ -784,13 +783,16 @@ void resetEvents(void) { - SDiveState * pStateUsed; + SDiveState * pStateUsed; if(stateUsed == stateRealGetPointer()) + { pStateUsed = stateRealGetPointerWrite(); + } else + { pStateUsed = stateSimGetPointerWrite(); - - memset(&pStateUsed->events,0, sizeof(SEvents)); + } + memset(&pStateUsed->events,0, sizeof(SEvents)); }