|
@@ -1286,11 +1286,14 @@ void Temperature::init() {
|
1286
|
1286
|
case TIMER1A: case TIMER1B: //_SET_CS(1, val);
|
1287
|
1287
|
break;
|
1288
|
1288
|
#endif
|
1289
|
|
- #ifdef TCCR2
|
1290
|
|
- case TIMER2: case TIMER2: _SET_CS(2, val); break;
|
1291
|
|
- #endif
|
1292
|
|
- #ifdef TCCR2A
|
1293
|
|
- case TIMER2A: case TIMER2B: _SET_CS(2, val); break;
|
|
1289
|
+ #if defined(TCCR2) || defined(TCCR2A)
|
|
1290
|
+ #ifdef TCCR2
|
|
1291
|
+ case TIMER2:
|
|
1292
|
+ #endif
|
|
1293
|
+ #ifdef TCCR2A
|
|
1294
|
+ case TIMER2A: case TIMER2B:
|
|
1295
|
+ #endif
|
|
1296
|
+ _SET_CS(2, val); break;
|
1294
|
1297
|
#endif
|
1295
|
1298
|
#ifdef TCCR3A
|
1296
|
1299
|
case TIMER3A: case TIMER3B: case TIMER3C: _SET_CS(3, val); break;
|