changeset 605:1f665e31aca2

change O2_CALIB_FRACTION_O2 to 0.98 It's common sense that calibrating CCR's with O2 asumes a max. O2 content of 98%
author heinrichsweikamp
date Thu, 07 Jan 2021 09:53:04 +0100
parents fb5bb04ad914
children 06ec1da5e105
files Discovery/Src/tMenuEditHardware.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Discovery/Src/tMenuEditHardware.c	Wed Jan 06 21:01:00 2021 +0100
+++ b/Discovery/Src/tMenuEditHardware.c	Thu Jan 07 09:53:04 2021 +0100
@@ -65,12 +65,13 @@
 uint8_t OnAction_O2_Source		(uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action);
 uint8_t OnAction_Button			(uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action);
 uint8_t OnAction_ButtonBalance	(uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action);
-// nicht notwending uint8_t OnAction_Bluetooth				(uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action);
+// not required uint8_t OnAction_Bluetooth				(uint32_t editId, uint8_t blockNumber, uint8_t digitNumber, uint8_t digitContent, uint8_t action);
 
 /* Exported functions --------------------------------------------------------*/
 
 
 #define O2_CALIB_FRACTION_AIR	(0.209F)
+#define O2_CALIB_FRACTION_O2	(0.98F)
 
 static uint8_t	O2_calib_gas = 21;
 
@@ -492,7 +493,7 @@
     		}
     		else
     		{
-    			compensatedRef = 100.0 * pStateReal->lifeData.pressure_ambient_bar / 1.0;
+    			compensatedRef = O2_CALIB_FRACTION_O2 * pStateReal->lifeData.pressure_ambient_bar / 1.0;
     		}
 			for(loop=0;loop<3;loop++)
 			{