Fix example

This commit is contained in:
nick6x 2017-07-30 12:07:00 -07:00
parent 7ebe201f96
commit 6726836631
1 changed files with 6 additions and 8 deletions

View File

@ -9,7 +9,7 @@
#define PWM_PIN 3
#define DDS_USE_ONLY_TIMER2 false
#define DDS_USE_ONLY_TIMER2 true
#define TIMER2_PHASE_ADVANCE 24
DDS dds;
@ -40,7 +40,6 @@ ISR(TIMER2_OVF_vect) {
}
#else // Use the ADC timer instead
ISR(ADC_vect) {
if(false){
static unsigned char tcnt = 0;
TIFR1 = _BV(ICF1); // Clear the timer flag
if(++tcnt == 4) {
@ -48,5 +47,4 @@ ISR(ADC_vect) {
}
dds.clockTick();
}
}
#endif