Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
turbyho committed Mar 22, 2017
1 parent 0bbf48e commit 73ccab7
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 113 deletions.
8 changes: 4 additions & 4 deletions examples/Dabduino_example_1/DABDUINO_example_1.ino
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ void setup() {
Serial.print("Search for DAB programs:");
dab.searchDAB(1);

int8_t status;
int8_t lastStatus;
unsigned int status;
unsigned int lastStatus;

while (true) {
dab.playStatus(status);
dab.playStatus(&status);
if (status != lastStatus) {
Serial.println();
switch (status) {
Expand Down Expand Up @@ -70,7 +70,7 @@ void setup() {
}
Serial.println("");

dab.getProgramIndex(programsIndex);
dab.getProgramIndex(&programsIndex);
Serial.println("Available programs: ");
for (unsigned int i = 1; i <= programsIndex; i++) {
if (dab.getProgramLongName(i, dabText)) {
Expand Down
Loading

0 comments on commit 73ccab7

Please sign in to comment.