diff --git a/Core/Src/yunhorn_sts_process.c b/Core/Src/yunhorn_sts_process.c index 60404fc..b8e506c 100644 --- a/Core/Src/yunhorn_sts_process.c +++ b/Core/Src/yunhorn_sts_process.c @@ -648,10 +648,10 @@ void STS_Combined_Status_Processing(void) } - if ((sts_rss_result_changed_flag)|| (sts_reed_hall_changed_flag)||(sts_fall_rising_detected_result_changed_flag)) + if ((sts_rss_result_changed_flag))//|| (sts_reed_hall_changed_flag)||(sts_fall_rising_detected_result_changed_flag)) { //sts_rss_result_changed_flag =0; - //sts_reed_hall_changed_flag =0; + sts_reed_hall_changed_flag =0; //sts_fall_rising_detected_result_changed_flag =0; //sts_tof_result_changed_flag =0; sensor_data_ready = 1; diff --git a/LoRaWAN/App/lora_app.c b/LoRaWAN/App/lora_app.c index 62c1718..a6dec1d 100644 --- a/LoRaWAN/App/lora_app.c +++ b/LoRaWAN/App/lora_app.c @@ -1123,7 +1123,7 @@ static void OnTxTimerEvent(void *context) /* USER CODE BEGIN OnTxTimerEvent_1 */ /* USER CODE END OnTxTimerEvent_1 */ - if ((sensor_data_ready ==1)|| (sts_reed_hall_changed_flag)||(sts_rss_result_changed_flag)||(sts_fall_rising_detected_result_changed_flag)) + if ((sensor_data_ready ==1)|| (sts_reed_hall_changed_flag)) //||(sts_rss_result_changed_flag)||(sts_fall_rising_detected_result_changed_flag)) { UTIL_SEQ_SetTask((1 << CFG_SEQ_Task_LoRaSendOnTxTimerOrButtonEvent), CFG_SEQ_Prio_0);