Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Commit

Permalink
faster
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Aug 24, 2021
1 parent aec1a46 commit 33a9447
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions board/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,8 @@ void TIM3_IRQHandler(void) {
}

#ifdef FINAL_PROVISIONING
// ign on for 3s, off for 2s
const bool ign = ((tcnt/10) % (3+2)) < 3;
// ign on for 0.3s, off for 0.2s
const bool ign = (tcnt % (3+2)) < 3;
if (ign != ignition) {
board_set_ignition(ign);
}
Expand Down

0 comments on commit 33a9447

Please sign in to comment.