MINOR IMPROVEMENT

This commit is contained in:
Yunhorn 2024-04-19 10:57:48 +08:00
parent 79352326e6
commit 5945feae5d
2 changed files with 2 additions and 0 deletions

View File

@ -99,6 +99,7 @@ void PWR_EnterStopMode(void)
/* USER CODE END EnterStopMode_1 */
HAL_GPIO_WritePin(GPIOA,GPIO_PIN_All,GPIO_PIN_RESET);
HAL_GPIO_WritePin(GPIOB,GPIO_PIN_All,GPIO_PIN_RESET);
HAL_GPIO_WritePin(GPIOC,GPIO_PIN_All,GPIO_PIN_RESET);
HAL_SuspendTick();
/* Clear Status Flag before entering STOP/STANDBY Mode */
LL_PWR_ClearFlag_C1STOP_C1STB();

View File

@ -347,6 +347,7 @@ void STS_YunhornSTSEventP6_Process(void)
{
APP_LOG(TS_OFF, VLEVEL_H, "\r\n P6 Testing Process\r\n");
STS_SENSOR_Power_ON(0);
HAL_Delay(50);
#ifdef LED_ONBOARD
LED_ON;
HAL_Delay(20);