added loggint to SD card
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user