Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/clunet.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--demo_project/clunet_config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/demo_project/clunet_config.h b/demo_project/clunet_config.h
index 7704c35..ed5ba86 100644
--- a/demo_project/clunet_config.h
+++ b/demo_project/clunet_config.h
@@ -47,7 +47,7 @@
#define CLUNET_TIMER_REG_OCR OCR2
/* How to enable and disable timer interrupts */
-#define CLUNET_ENABLE_TIMER_COMP {set_bit(TIMSK, OCIE2);set_bit(TIFR, OCF2);}
+#define CLUNET_ENABLE_TIMER_COMP {set_bit(TIFR, OCF2);set_bit(TIMSK, OCIE2);}
#define CLUNET_DISABLE_TIMER_COMP unset_bit(TIMSK, OCIE2)
/* How to init and enable external interrupt (read pin) */