mirror of
https://github.com/usatiuk/EggbotWireless.git
synced 2025-10-26 16:57:48 +01:00
add a comment
This commit is contained in:
@@ -135,6 +135,11 @@ void setup() {
|
||||
volatile unsigned int tick = 0;
|
||||
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) {
|
||||
if (armed) {
|
||||
tick++;
|
||||
|
||||
Reference in New Issue
Block a user