no update

This commit is contained in:
Yunhorn 2023-05-25 18:29:05 +08:00
parent 5b100a6427
commit 86f4abae72
2 changed files with 9 additions and 1 deletions

View File

@ -33,6 +33,8 @@ extern "C" {
#define STS_Status_Door_Close (0) //Normal Close NC:Open
#define STS_Status_Door_Open (1) //Normal Close NC:Close
#define STS_Status_Door_Open (1<<0) //Normal Close NC:Close
enum sts_lamp_color {
STS_DARK = 0, //灭0
STS_GREEN, //绿1 0 1 0

View File

@ -139,6 +139,7 @@ void STS_YunhornSTSEventP2_Process(void)
void STS_Reed_Hall_Presence_Detection(void)
{
// HAL_Delay(50); // BOUNCING ELIMIATION
/*
if (STS_Reed_Hall_State == STS_Status_Door_Open)
{
sts_reed_hall_result = STS_Status_Door_Open;
@ -148,8 +149,13 @@ void STS_Reed_Hall_Presence_Detection(void)
sts_reed_hall_result = STS_Status_Door_Close;
}
*/
sts_reed_hall_result = ((STS_Reed_Hall_State)&STS_Status_Door_Open);
// HAL_Delay(20); // BOUNCING ELIMIATION
sts_reed_hall_changed_flag = 0;
// sts_reed_hall_changed_flag = 0;
sts_reed_hall_changed_flag = ;
sts_reed_hall_ext_int = 0;
}