# HG changeset patch # User ideenmodellierer # Date 1589399795 -7200 # Node ID 3fe9cc747c5cdafe2d21116bdf661c6e3b8a5ae3 # Parent 4b9427ae0a656c13e5a2b62501889608368de7a9 Code cleanup pressure plausibility check: The function was deactivated (always returning true) some time ago => removed useless code diff -r 4b9427ae0a65 -r 3fe9cc747c5c Small_CPU/Src/pressure.c --- a/Small_CPU/Src/pressure.c Wed May 13 21:27:30 2020 +0200 +++ b/Small_CPU/Src/pressure.c Wed May 13 21:56:35 2020 +0200 @@ -50,7 +50,6 @@ /* #define SIMULATE_PRESSURE */ #define PRESSURE_SURFACE_MAX_MBAR (1030.0f) /* It is unlikely that pressure at surface is greater than this value => clip to it */ -#define PRESSURE_HISTORY_SIZE (8u) #define PRESSURE_SURFACE_QUE (30u) /* history buffer [minutes] for past pressure measurements */ #define PRESSURE_SURFACE_EVA_WINDOW (15u) /* Number of entries evaluated during instability test. Used to avoid detection while dive enters water */ @@ -100,8 +99,6 @@ static float surface_pressure_stable_value = 0; static uint8_t surface_pressure_stable = 0; -static float pressure_history_mbar[PRESSURE_HISTORY_SIZE]; - static uint8_t secondCounterSurfaceRing = 0; static uint8_t avgCount = 0; static float runningAvg = 0; @@ -137,14 +134,6 @@ } } -void init_pressure_history(void) -{ - for(int i=0; i