Skip to content

Commit

Permalink
fix: First open/error timeout firing immediately.
Browse files Browse the repository at this point in the history
First timeout for opening door or indicating error was firing
immediately due to interrupt flag being set after the boot. This also
improves stability of quick subsequent reads, as the interrupt flag is
now cleared before enabling the interrupt.
  • Loading branch information
gbdlin committed Sep 30, 2024
1 parent cdeeb4f commit ef0edff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Core/Src/wiegand.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ void canpybara_wiegand_zone_response(uint8_t response)
}

__HAL_TIM_SET_COUNTER(&htim3, 0);
__HAL_TIM_CLEAR_FLAG(&htim3, TIM_FLAG_UPDATE);
HAL_TIM_Base_Start_IT(&htim3);
}

Expand Down

0 comments on commit ef0edff

Please sign in to comment.