test
This commit is contained in:
parent
7285f9465b
commit
0f37b63456
7 changed files with 15 additions and 15 deletions
|
@ -358,7 +358,7 @@ void startDoorHandleTask(void *argument) {
|
|||
if (door_lock_state != door_lock_state_command) {
|
||||
if (door_lock_state_command == DOOR_LOCK_LOCKED) {
|
||||
if (door_state == DOOR_STATE_CLOSED) {
|
||||
HAL_GPIO_WritePin(DOOR_LOCK_PIN, DOOR_LOCK_BANK, 1);
|
||||
HAL_GPIO_WritePin(DOOR_LOCK_BANK, DOOR_LOCK_PIN, 1);
|
||||
door_lock_state = DOOR_LOCK_LOCKED;
|
||||
door_lock_waiting = false;
|
||||
} else {
|
||||
|
@ -373,14 +373,14 @@ void startDoorHandleTask(void *argument) {
|
|||
HAL_GPIO_WritePin(ALARM_BANK, ALARM_PIN, 1);
|
||||
}
|
||||
} else {
|
||||
HAL_GPIO_WritePin(DOOR_LOCK_PIN, DOOR_LOCK_BANK, 1);
|
||||
HAL_GPIO_WritePin(DOOR_LOCK_BANK, DOOR_LOCK_PIN, 1);
|
||||
door_lock_waiting = false;
|
||||
door_lock_state = DOOR_LOCK_LOCKED;
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (door_lock_state_command == DOOR_LOCK_UNLOCKED) {
|
||||
HAL_GPIO_WritePin(DOOR_LOCK_PIN, DOOR_LOCK_BANK, 0);
|
||||
HAL_GPIO_WritePin(DOOR_LOCK_BANK, DOOR_LOCK_PIN, 0);
|
||||
door_lock_state = DOOR_LOCK_UNLOCKED;
|
||||
door_lock_waiting = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue