diff Small_CPU/Src/pressure.c @ 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 8c92f7743e14
children 08ea8e9d6cfe
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;
 	}
 }