Skip to content

Commit 5ab6edb

Browse files
NicoHoodcmaglie
authored andcommitted
Removed Timer warnings when Timer 2 is not present
1 parent a7edf4d commit 5ab6edb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cores/arduino/wiring.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,17 +312,17 @@ void init()
312312
sbi(TCCR2, CS22);
313313
#elif defined(TCCR2B) && defined(CS22)
314314
sbi(TCCR2B, CS22);
315-
#else
316-
#warning Timer 2 not finished (may not be present on this CPU)
315+
//#else
316+
// Timer 2 not finished (may not be present on this CPU)
317317
#endif
318318

319319
// configure timer 2 for phase correct pwm (8-bit)
320320
#if defined(TCCR2) && defined(WGM20)
321321
sbi(TCCR2, WGM20);
322322
#elif defined(TCCR2A) && defined(WGM20)
323323
sbi(TCCR2A, WGM20);
324-
#else
325-
#warning Timer 2 not finished (may not be present on this CPU)
324+
//#else
325+
// Timer 2 not finished (may not be present on this CPU)
326326
#endif
327327

328328
#if defined(TCCR3B) && defined(CS31) && defined(WGM30)

0 commit comments

Comments
 (0)