diff --git a/arduino-sony-minidisc-ir-remote.ino b/arduino-sony-minidisc-ir-remote.ino index c5944c4..e9812d7 100644 --- a/arduino-sony-minidisc-ir-remote.ino +++ b/arduino-sony-minidisc-ir-remote.ino @@ -237,7 +237,8 @@ void setup() if (request->hasParam("control", true)) { message = request->getParam("control", true)->value(); //Serial.print(message); - if (message == "POWER") + sendButton(message); + /* if (message == "POWER") sendButton(POWER); if (message == "PLAY") sendButton(PLAY); @@ -247,9 +248,8 @@ void setup() sendButton(STOP); if (message == "PREV") sendButton(PREV); - if (message == "NEXT") - sendButton(NEXT); + sendButton(NEXT); */ } else { message = "No message sent"; } diff --git a/defines.h b/defines.h index bc0077a..13bbfb2 100644 --- a/defines.h +++ b/defines.h @@ -3,7 +3,10 @@ #define LED_PIN 13 // IR commands (Sony 12bit) -#define POWER 0x15 + +int POWER = 0x15; //Das ist noch ein Fehler. Eigentlich brauche ich eine Möglichkeit key/value Paare auszulesen. + +//#define POWER 0x15 #define PLAY 0x2A #define PAUSE 0x29 #define STOP 0x28