comparison Discovery/Src/tMenuEditGasOC.c @ 699:01f40cb1057e

Cleanup warnings: The code still contained several warnings which have now been resolved. Big thank you to Thomas :-)
author Ideenmodellierer
date Tue, 18 Oct 2022 20:56:19 +0200
parents 8775d3dc6325
children 39f48356049b
comparison
equal deleted inserted replaced
698:2c2b9c6eb089 699:01f40cb1057e
179 179
180 void openEdit_DiveGasSelect_Subroutine(uint8_t line, uint8_t ccr) 180 void openEdit_DiveGasSelect_Subroutine(uint8_t line, uint8_t ccr)
181 { 181 {
182 uint8_t setpoint; 182 uint8_t setpoint;
183 183
184 editGasPage.pGasLine = stateUsed->diveSettings.gas; 184 editGasPage.pGasLine = (SGasLine *)stateUsed->diveSettings.gas;
185 185
186 if(ccr) 186 if(ccr)
187 { 187 {
188 editGasPage.gasID = line + NUM_OFFSET_DILUENT; 188 editGasPage.gasID = line + NUM_OFFSET_DILUENT;
189 setpoint = stateUsed->lifeData.actualGas.setPoint_cbar; 189 setpoint = stateUsed->lifeData.actualGas.setPoint_cbar;
213 { 213 {
214 char text[32]; 214 char text[32];
215 uint8_t oxygen, helium, gasOffset, textpointer, lineCount, ptrGas; 215 uint8_t oxygen, helium, gasOffset, textpointer, lineCount, ptrGas;
216 //SDiveState * pState; 216 //SDiveState * pState;
217 217
218 editGasPage.pGasLine = stateUsed->diveSettings.gas; 218 editGasPage.pGasLine = (SGasLine *)stateUsed->diveSettings.gas;
219 if(ccr) 219 if(ccr)
220 { 220 {
221 editGasPage.setpoint = stateUsed->lifeData.actualGas.setPoint_cbar; 221 editGasPage.setpoint = stateUsed->lifeData.actualGas.setPoint_cbar;
222 } 222 }
223 editGasPage.ccr = ccr; 223 editGasPage.ccr = ccr;