diff Discovery/Src/base.c @ 1032:33b91584d827 Puls_Integration

New CV Pulse: The basic infrastructure for external puls measurement via Bluetooth has been added. Precondition is an OSTC with an activated central role. The OSTC will then search for a BLE device with puls measurement service. Reading data and visualization is not implemented yet.
author Ideenmodellierer
date Mon, 28 Jul 2025 18:34:45 +0200
parents 5a690195b6b7
children 5f66e44d69f0
line wrap: on
line diff
--- a/Discovery/Src/base.c	Mon Jul 28 18:32:23 2025 +0200
+++ b/Discovery/Src/base.c	Mon Jul 28 18:34:45 2025 +0200
@@ -501,6 +501,7 @@
             resetToFirmwareUpdate();
 
         tCCR_control();
+
         if( tComm_control() )// will stop while loop if tComm Mode started until exit from UART
         {
             createDiveSettings();
@@ -532,6 +533,8 @@
         }
         if(DoDisplayRefresh)							/* set every 100ms by timer interrupt */
         {
+        	cv_heartbeat_Control();
+
 	        DoDisplayRefresh = 0;
 
 	        updateSetpointStateUsed();
@@ -727,6 +730,13 @@
 {
 	SStateList status;
 	get_globalStateList(&status);
+
+	if((status.base != 0) && (InfoLogger_isUpdated()))
+	{
+		openInfo_Logger();
+		get_globalStateList(&status);
+	}
+
 	switch(status.base)
 	{
 	case BaseHome: