Skip to content

Commit 155ca1d

Browse files
hlovdalianfixes
authored andcommitted
Remove ambigous function
...: error: call of overloaded ‘tone(uint8_t, unsigned int)’ is ambiguous tone( pin, frequency ); ^ In file included from ... .../.gem/ruby/gems/arduino_ci-0.1.10/cpp/arduino/Godmode.h:100:13: note: candidate: void tone(uint8_t, unsigned int, long unsigned int) inline void tone(uint8_t _pin, unsigned int frequency, unsigned long duration = 0) {} ^~~~ .../.gem/ruby/gems/arduino_ci-0.1.10/cpp/arduino/Godmode.h:101:13: note: candidate: void tone(uint8_t, unsigned int) inline void tone(uint8_t _pin, unsigned int frequency) {} ^~~~
1 parent 7a9d875 commit 155ca1d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

cpp/arduino/Godmode.h

-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ void analogWrite(uint8_t, int);
9393

9494
// TODO: issue #26 to track the commanded state here
9595
inline void tone(uint8_t _pin, unsigned int frequency, unsigned long duration = 0) {}
96-
inline void tone(uint8_t _pin, unsigned int frequency) {}
9796
inline void noTone(uint8_t _pin) {}
9897

9998

0 commit comments

Comments
 (0)