comparison 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
comparison
equal deleted inserted replaced
845:17d9d6eddd8d 846:2ace67231c49
683 } 683 }
684 ambient_pressure_mbar = runningAvg; 684 ambient_pressure_mbar = runningAvg;
685 685
686 if(ambient_pressure_mbar < PRESSURE_MINIMUM) 686 if(ambient_pressure_mbar < PRESSURE_MINIMUM)
687 { 687 {
688 ambient_pressure_mbar = 1000.0; 688 ambient_pressure_mbar = 1000.0 + pressure_offset;
689 } 689 }
690 } 690 }
691 691
692 692
693 /* taken from AN520 by meas-spec.com dated 9. Aug. 2011 693 /* taken from AN520 by meas-spec.com dated 9. Aug. 2011