Skip to content

Commit aa261fc

Browse files
authored
Merge pull request #10 from gpstar81/updates
revert some code
2 parents bbba4db + df8783a commit aa261fc

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/GPStarAudio.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,14 @@ bool gpstarAudio::currentTrackStatus(uint16_t trk) {
182182
return false;
183183
}
184184

185+
bool gpstarAudio::trackCounterReset() {
186+
return trackCounter;
187+
}
188+
189+
void gpstarAudio::resetTrackCounter(bool bReset) {
190+
trackCounter = bReset;
191+
}
192+
185193
void gpstarAudio::trackPlayingStatus(uint16_t trk) {
186194
uint8_t txbuf[7];
187195

src/GPStarAudio.h

+3
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ class gpstarAudio
101101
void setTriggerBank(uint8_t bank);
102102
void trackPlayingStatus(uint16_t trk);
103103
bool currentTrackStatus(uint16_t trk);
104+
bool trackCounterReset(void);
105+
void resetTrackCounter(bool bReset);
104106
void serialFlush(void);
105107
void requestVersionString(void);
106108
void requestSystemInfo(void);
@@ -130,4 +132,5 @@ class gpstarAudio
130132
bool gpsInfoRcvd;
131133
uint16_t currentTrack;
132134
bool b_currentTrackStatus;
135+
bool trackCounter;
133136
};

0 commit comments

Comments
 (0)