comparison Discovery/Src/simulation.c @ 51:8f8ea3a32e82

Resolved warnings pointing to possible invalid memory access
author Ideenmodellierer
date Tue, 31 Jul 2018 22:28:21 +0200
parents 5f11787b4f42
children cc9c18075e00
comparison
equal deleted inserted replaced
50:6310a27fd6d3 51:8f8ea3a32e82
677 float sim_descent_rate_meter_per_min_local = 10; 677 float sim_descent_rate_meter_per_min_local = 10;
678 float sim_ascent_rate_meter_per_min_local = 10; 678 float sim_ascent_rate_meter_per_min_local = 10;
679 679
680 SDiveState * pDiveState = &stateSim; 680 SDiveState * pDiveState = &stateSim;
681 681
682 uint8_t depthDecoNext, depthLast, depthSecond, depthInc; 682 uint8_t depthDecoNext = 0;
683 uint8_t depthLast = 0;
684 uint8_t depthSecond = 0;
685 uint8_t depthInc = 0;
683 686
684 for(int i = 1; i < 6; i++) 687 for(int i = 1; i < 6; i++)
685 outputConsumptionTempFloat[i] = 0; 688 outputConsumptionTempFloat[i] = 0;
686 689
687 if(gasChangeListDepthGas20x2) 690 if(gasChangeListDepthGas20x2)