Skip to content

Commit

Permalink
fix: Remove canbus spam
Browse files Browse the repository at this point in the history
Canpybaras are spaming about GPIO input, which is unused on wiegand
mode. GPIO reports are now disabled when wiegand is enabled.
  • Loading branch information
gbdlin committed Sep 26, 2024
1 parent 356a4f5 commit aaa7987
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Core/Src/stm32f1xx_it.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,11 @@ void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
// Periodic CAN reports
if(htim == &htim1)
{
#ifdef WIEGAND_ENABLED
#warning Wiegand enabled: GPIO periodic report will be disabled
#else
canpybara_gpio_report();
#endif
}

// Debounce filter
Expand Down

0 comments on commit aaa7987

Please sign in to comment.