added loggint to SD card

This commit is contained in:
2024-05-21 22:18:05 +02:00
parent 04c5eb047e
commit bd8779b5aa
4 changed files with 107 additions and 5 deletions

View File

@@ -39,6 +39,7 @@
#include "LightState.h"
#include "BSP_GPIO.h"
#include "BSP_ADC.h"
#include "BSP_SDLogger.h"
/* USER CODE END Includes */
/* Private typedef -----------------------------------------------------------*/
@@ -186,6 +187,8 @@ void StartDefaultTask(void *argument)
ULOG_INFO(output);
}
char INA_LOG[72];
/* Infinite loop */
@@ -247,13 +250,13 @@ void WaitForStartConfirm_Task(void *argument) {
}
if(tick > maxDelayTime) {
BSP_POWER_EnterStandby();
ULOG_INFO("System in standby mode");
osThreadExit();
while (1)
{
osDelay(1000);
ULOG_INFO("System in standby mode");
BSP_POWER_EnterStandby();
NVIC_SystemReset();
}
osThreadExit();
}
}
}