changeset 846:2ace67231c49 Evo_2_23

Consider pressure offset compensation in case of setting a default value: This change is just for complettness in case the pressure sensore is providing out of bounce values.
author Ideenmodellierer
date Sun, 21 Jan 2024 22:26:37 +0100
parents 17d9d6eddd8d
children 92a5dc16d52b
files Small_CPU/Src/pressure.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Small_CPU/Src/pressure.c	Sun Jan 21 22:24:36 2024 +0100
+++ b/Small_CPU/Src/pressure.c	Sun Jan 21 22:26:37 2024 +0100
@@ -685,7 +685,7 @@
 
 	if(ambient_pressure_mbar < PRESSURE_MINIMUM)
 	{
-		ambient_pressure_mbar = 1000.0;
+		ambient_pressure_mbar = 1000.0 + pressure_offset;
 	}
 }