add a comment

This commit is contained in:
2019-07-22 20:06:46 +03:00
parent 472011554d
commit 44845fe5af

View File

@@ -135,6 +135,11 @@ void setup() {
volatile unsigned int tick = 0; volatile unsigned int tick = 0;
volatile bool armed = false; volatile bool armed = false;
/*
We use our own timer for more precise timings
And it ticks only when armed, to ensure
that updateExecution() doesn't skip a single tick
*/
ISR(TIMER2_COMPA_vect) { ISR(TIMER2_COMPA_vect) {
if (armed) { if (armed) {
tick++; tick++;