diff --git a/Core/Src/stm32_lpm_if.c b/Core/Src/stm32_lpm_if.c index de7fd83..0530774 100644 --- a/Core/Src/stm32_lpm_if.c +++ b/Core/Src/stm32_lpm_if.c @@ -106,9 +106,10 @@ void PWR_EnterStopMode(void) { /* USER CODE BEGIN EnterStopMode_1 */ PME_OFF; - HAL_GPIO_DeInit(GPIOA,GPIO_PIN_All); // repeative error - HAL_GPIO_DeInit(GPIOB,GPIO_PIN_All); - HAL_GPIO_DeInit(GPIOC,GPIO_PIN_All); + //HAL_GPIO_DeInit(GPIOA,GPIO_PIN_All); // error bug here + HAL_GPIO_WritePin(GPIOA, GPIO_PIN_All, GPIO_PIN_RESET);// error bug here + HAL_GPIO_WritePin(GPIOB, GPIO_PIN_All, GPIO_PIN_RESET); + HAL_GPIO_WritePin(GPIOC, GPIO_PIN_All, GPIO_PIN_RESET); /* USER CODE END EnterStopMode_1 */ HAL_SuspendTick(); diff --git a/LoRaWAN/App/lora_app.c b/LoRaWAN/App/lora_app.c index e464ae7..d878936 100644 --- a/LoRaWAN/App/lora_app.c +++ b/LoRaWAN/App/lora_app.c @@ -638,7 +638,7 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) #ifdef YUNHORN_STS_O5_ENABLED UTIL_SEQ_SetTask((1 << CFG_SEQ_Task_YunhornSTSEventP1), CFG_SEQ_Prio_0); #endif - } + #ifdef STS_R1D UTIL_SEQ_SetTask((1 << CFG_SEQ_Task_YunhornSTSEventP4), CFG_SEQ_Prio_0); #endif @@ -648,7 +648,7 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) HAL_Delay(20); LED_OFF; #endif - + } break; case BUT2_Pin: #if defined(STS_USE_STM32WLE5)