TIFR disabled, we use async EEPROM write!
This commit is contained in:
+2
-2
@@ -555,7 +555,7 @@ void setupPulses()
|
|||||||
TIMSK1 |= 0x28; // Enable CAPT and COMPB
|
TIMSK1 |= 0x28; // Enable CAPT and COMPB
|
||||||
#else
|
#else
|
||||||
TIMSK &= ~0x3C; // All interrupts off
|
TIMSK &= ~0x3C; // All interrupts off
|
||||||
TIFR = 0x3C; // Clear all pending interrupts
|
// TIFR = 0x3C; // Clear all pending interrupts
|
||||||
TIMSK |= 0x28; // Enable CAPT and COMPB
|
TIMSK |= 0x28; // Enable CAPT and COMPB
|
||||||
#endif
|
#endif
|
||||||
TCCR1A = (0 << WGM10);
|
TCCR1A = (0 << WGM10);
|
||||||
@@ -579,7 +579,7 @@ void setupPulses()
|
|||||||
TIMSK1 |= 0x10; // Enable COMPA
|
TIMSK1 |= 0x10; // Enable COMPA
|
||||||
#else
|
#else
|
||||||
TIMSK &= ~0x3C; // All interrupts off
|
TIMSK &= ~0x3C; // All interrupts off
|
||||||
TIFR = 0x3C; // Clear all pending interrupts
|
// TIFR = 0x3C; // Clear all pending interrupts
|
||||||
TIMSK |= 0x10; // Enable COMPA
|
TIMSK |= 0x10; // Enable COMPA
|
||||||
#endif
|
#endif
|
||||||
TCCR1A = (0 << WGM10);
|
TCCR1A = (0 << WGM10);
|
||||||
|
|||||||
Reference in New Issue
Block a user