no update
This commit is contained in:
parent
5b100a6427
commit
86f4abae72
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
Reference in New Issue