We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d61fd4 commit 143fd35Copy full SHA for 143fd35
src/kaleidoscope/driver/speaker/Base.h
@@ -47,7 +47,7 @@ class Base {
47
48
void playTune(const uint16_t *notes, const uint16_t *durations, uint8_t length);
49
void playTune(std::initializer_list<uint16_t> notes, std::initializer_list<uint16_t> durations) {
50
- playTune(notes.begin(), durations.begin(), notes.size());
+ playTune(notes.begin(), durations.begin(), min(notes.size(), durations.size()));
51
}
52
virtual void stopTune();
53
virtual void update();
0 commit comments