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 @@ -31,6 +31,7 @@ Version Modified By Date Comments
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
33
0009 J Reucker 15/04/10 Issue #292 Fixed problems with ATmega8 (thanks to Pete62)
34
+ 0010 jipp 15/04/13 added additional define check #2923
34
35
*************************************************/
35
36
36
37
#include < avr/interrupt.h>
@@ -152,7 +153,7 @@ static int8_t toneBegin(uint8_t _pin)
152
153
// whereas 16 bit timers are set to either ck/1 or ck/64 prescalar
153
154
switch (_timer)
154
155
{
155
- #if defined(TCCR0A) && defined(TCCR0B)
156
+ #if defined(TCCR0A) && defined(TCCR0B) && defined(WGM01)
156
157
case 0 :
157
158
// 8 bit timer
158
159
TCCR0A = 0 ;
You can’t perform that action at this time.
0 commit comments