File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
hardware/arduino/avr/cores/arduino Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ Version Modified By Date Comments
30
30
0006 D Mellis 09/12/29 Replaced objects with functions
31
31
0007 M Sproul 10/08/29 Changed #ifdefs from cpu to register
32
32
0008 S Kanemoto 12/06/22 Fixed for Leonardo by @maris_HY
33
+ 0009 jipp 15/04/13 added additional define check #2923
33
34
*************************************************/
34
35
35
36
#include < avr/interrupt.h>
@@ -151,7 +152,7 @@ static int8_t toneBegin(uint8_t _pin)
151
152
// whereas 16 bit timers are set to either ck/1 or ck/64 prescalar
152
153
switch (_timer)
153
154
{
154
- #if defined(TCCR0A) && defined(TCCR0B)
155
+ #if defined(TCCR0A) && defined(TCCR0B) && defined(WGM01)
155
156
case 0 :
156
157
// 8 bit timer
157
158
TCCR0A = 0 ;
You can’t perform that action at this time.
0 commit comments