wip 02, no good after join

This commit is contained in:
Yunhorn 2025-04-01 18:09:24 +08:00
parent d85b8e385f
commit 43ce7b01cb
4 changed files with 3 additions and 2 deletions

View File

@ -646,9 +646,9 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin)
fhmos_occupancy = 1; fhmos_occupancy = 1;
} }
#endif #endif
last_sts_hall1_read = sts_hall1_read;
UTIL_SEQ_SetTask((1 << CFG_SEQ_Task_LoRaSendOnTxTimerOrButtonEvent), CFG_SEQ_Prio_0); UTIL_SEQ_SetTask((1 << CFG_SEQ_Task_LoRaSendOnTxTimerOrButtonEvent), CFG_SEQ_Prio_0);
last_sts_hall1_read = sts_hall1_read;
} //else { } //else {
//APP_LOG(TS_OFF, VLEVEL_M, "\r\n --- ---- ----- -------- hall 1, door close again \r\n"); //APP_LOG(TS_OFF, VLEVEL_M, "\r\n --- ---- ----- -------- hall 1, door close again \r\n");
//} //}

View File

@ -681,6 +681,7 @@ static void print_result(RANGING_SENSOR_Result_t *Result)
if ((head_distance_from_ceiling <= factor1_floor_level_from_ceiling) && ((head_height_level_from_floor) <= (10*fhmos_cfg.th_head_level_height_cm)) && (head_height_level_from_floor >= (10*fhmos_cfg.th_fall_body_min_height_cm ))) if ((head_distance_from_ceiling <= factor1_floor_level_from_ceiling) && ((head_height_level_from_floor) <= (10*fhmos_cfg.th_head_level_height_cm)) && (head_height_level_from_floor >= (10*fhmos_cfg.th_fall_body_min_height_cm )))
{ {
to_confirm ++; to_confirm ++;
APP_LOG(TS_OFF, VLEVEL_L, "\r\n To_Confirm=%d \r\n", to_confirm);
if (to_confirm >=3 ) if (to_confirm >=3 )
{ {
sts_head_level_low = 1; sts_head_level_low = 1;