This commit is contained in:
Yunhorn 2024-03-27 15:40:32 +08:00
parent 221ee7928e
commit e4efd3b670
1 changed files with 4 additions and 3 deletions

View File

@ -448,7 +448,7 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
{
case BUT1_Pin:
/* Note: when "EventType == TX_ON_TIMER" this GPIO is not initialized */
door_changed_flag = 1;
//door_changed_flag = 1;
//UTIL_SEQ_SetTask((1 << CFG_SEQ_Task_LoRaSendOnTxTimerOrButtonEvent), CFG_SEQ_Prio_0);
//UTIL_SEQ_SetTask((1 << CFG_SEQ_Task_YunhornSTSP1CheckingEvent), CFG_SEQ_Prio_0);
@ -694,12 +694,13 @@ static void OnTxTimerEvent(void *context)
//door_changed_flag =0;
door_status = HAL_GPIO_ReadPin(GPIOA,GPIO_PIN_0);
if (door_previous_status != door_status)
{
door_previous_status = door_status;
UTIL_SEQ_SetTask((1 << CFG_SEQ_Task_LoRaSendOnTxTimerOrButtonEvent), CFG_SEQ_Prio_0);
}
door_previous_status = door_status;
//UTIL_TIMER_Start(&TxTimer);
/* USER CODE BEGIN OnTxTimerEvent_2 */