forked from Michel2/LoLshield
Minor cleanup: reindent, use _BV().
This commit is contained in:
@@ -232,10 +232,10 @@ void LedSign::Init(uint8_t mode)
|
||||
|
||||
// Then start the display
|
||||
#if defined (__AVR_ATmega168__) || defined (__AVR_ATmega48__) || defined (__AVR_ATmega88__) || defined (__AVR_ATmega328P__) || defined (__AVR_ATmega1280__) || defined (__AVR_ATmega2560__)
|
||||
TIMSK2 |= (1<<TOIE2);
|
||||
TIMSK2 |= _BV(TOIE2);
|
||||
TCCR2B = fastPrescaler.tccr2;
|
||||
#elif defined (__AVR_ATmega8__) || defined (__AVR_ATmega128__)
|
||||
TIMSK |= (1<<TOIE2);
|
||||
TIMSK |= _BV(TOIE2);
|
||||
TCCR2 = fastPrescaler.tccr2;
|
||||
#endif
|
||||
TCNT2 = 255; // interrupt ASAP
|
||||
|
||||
Reference in New Issue
Block a user