From 5945feae5d8328fda4d7b98836373ae8386c5b83 Mon Sep 17 00:00:00 2001
From: YunHorn Technology <dp.s@yunhorn.com>
Date: Fri, 19 Apr 2024 10:57:48 +0800
Subject: [PATCH] MINOR IMPROVEMENT

---
 Core/Src/stm32_lpm_if.c        | 1 +
 Core/Src/yunhorn_sts_process.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/Core/Src/stm32_lpm_if.c b/Core/Src/stm32_lpm_if.c
index 7bda99b..1455515 100644
--- a/Core/Src/stm32_lpm_if.c
+++ b/Core/Src/stm32_lpm_if.c
@@ -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();
diff --git a/Core/Src/yunhorn_sts_process.c b/Core/Src/yunhorn_sts_process.c
index 0756211..1d23415 100644
--- a/Core/Src/yunhorn_sts_process.c
+++ b/Core/Src/yunhorn_sts_process.c
@@ -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);