diff options
author | jipp <wolfgang.keller@wobilix.de> | 2015-04-13 16:18:18 +0200 |
---|---|---|
committer | jipp <wolfgang.keller@wobilix.de> | 2015-04-13 16:18:18 +0200 |
commit | 7e5b5bfcb5a1e9e501362084b25f2947e675e50c (patch) | |
tree | 85f4e9b4a969885ce7487f52fde5f6d9e4822fa0 /cores/arduino | |
parent | 0d3ba46b486cacbaa060a4010d0e2552288ccf63 (diff) |
Update Tone.cpp
Tone.cpp stops compile when TCCR0A/TCCR0B defined and WGM01 not defined #2923
Diffstat (limited to 'cores/arduino')
-rw-r--r-- | cores/arduino/Tone.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cores/arduino/Tone.cpp b/cores/arduino/Tone.cpp index 9bb6fe7..2f2fedf 100644 --- a/cores/arduino/Tone.cpp +++ b/cores/arduino/Tone.cpp @@ -30,6 +30,7 @@ Version Modified By Date Comments 0006 D Mellis 09/12/29 Replaced objects with functions 0007 M Sproul 10/08/29 Changed #ifdefs from cpu to register 0008 S Kanemoto 12/06/22 Fixed for Leonardo by @maris_HY +0009 jipp 15/04/13 added additional define check #2923 *************************************************/ #include <avr/interrupt.h> @@ -151,7 +152,7 @@ static int8_t toneBegin(uint8_t _pin) // whereas 16 bit timers are set to either ck/1 or ck/64 prescalar switch (_timer) { - #if defined(TCCR0A) && defined(TCCR0B) + #if defined(TCCR0A) && defined(TCCR0B) && defined(WGM01) case 0: // 8 bit timer TCCR0A = 0; |