From 81307b4d7a5769f694558d8c5b27f6f48bf725cb Mon Sep 17 00:00:00 2001 From: Turbyho Date: Thu, 30 Mar 2017 20:16:07 +0200 Subject: [PATCH] example --- examples/Dabduino_example_1/DABDUINO_example_1.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/Dabduino_example_1/DABDUINO_example_1.ino b/examples/Dabduino_example_1/DABDUINO_example_1.ino index 32b6df7..bde8715 100644 --- a/examples/Dabduino_example_1/DABDUINO_example_1.ino +++ b/examples/Dabduino_example_1/DABDUINO_example_1.ino @@ -72,7 +72,7 @@ void setup() { dab.getProgramIndex(&programsIndex); Serial.println("Available programs: "); - for (unsigned int i = 1; i <= programsIndex; i++) { + for (unsigned int i = 0; i <= programsIndex; i++) { if (dab.getProgramLongName(i, dabText)) { Serial.print(i); Serial.print("\t "); @@ -89,7 +89,7 @@ void setup() { Serial.println("Set volume"); } - programIndex = 1; + programIndex = 0; if (dab.playDAB(programIndex)) { if (dab.getProgramLongName(programIndex, dabText)) {