Skip to content

Commit 0b256e2

Browse files
committed
Fix missing default parameter in trackFade
The documentation states that the default value for stopFlag in trackFade should be false. This adds the missing default value for this parameter so that the code will match the documentation.
1 parent 583672f commit 0b256e2

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "GPStar Audio Serial Library",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"description": "A serial communication control library for the GPStar Audio and GPStar Audio XL series of audio boards from GPStar Technologies.",
55
"keywords": "audio, serial, music, wav",
66
"authors":

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=GPStar Audio Serial Library
2-
version=1.3.0
2+
version=1.3.1
33
author=Michael Rajotte
44
license=GPL-3.0-or-later
55
maintainer=Michael Rajotte <michael.rajotte@gpstartechnologies.com>

src/GPStarAudio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ void gpstarAudio::trackGain(uint16_t trk, int16_t gain) {
476476
GPStarSerial->write(txbuf, 9);
477477
}
478478

479-
void gpstarAudio::trackFade(uint16_t trk, int16_t gain, uint16_t time, bool stopFlag) {
479+
void gpstarAudio::trackFade(uint16_t trk, int16_t gain, uint16_t time, bool stopFlag = false) {
480480
uint8_t txbuf[12];
481481

482482
txbuf[0] = SOM1;

src/GPStarAudio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class gpstarAudio
106106
void trackResume(uint16_t trk);
107107
void trackLoop(uint16_t trk, bool enable);
108108
void trackGain(uint16_t trk, int16_t gain);
109-
void trackFade(uint16_t trk, int16_t gain, uint16_t time, bool stopFlag);
109+
void trackFade(uint16_t trk, int16_t gain, uint16_t time, bool stopFlag = false);
110110
void samplerateOffset(int16_t offset);
111111
void setTriggerBank(uint8_t bank);
112112
void trackPlayingStatus(uint16_t trk);

0 commit comments

Comments
 (0)