From 750f778d1989d9823d020cec69f0802967aeed88 Mon Sep 17 00:00:00 2001 From: Stefan Sterz Date: Thu, 28 Jan 2016 19:15:56 +0100 Subject: [PATCH] fiy output analog read --- arduino/src/sketch.ino | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arduino/src/sketch.ino b/arduino/src/sketch.ino index d6d129b..7772e56 100644 --- a/arduino/src/sketch.ino +++ b/arduino/src/sketch.ino @@ -128,8 +128,9 @@ void analogR(int pin) { if(pin == -1) { Serial.println("badpin"); return; } pinMode(pin, INPUT); int rval = analogRead(pin); - Serial.println(String(pin + "::" + rval)); - + Serial.print(pin); + Serial.print("::"); + Serial.println(rval); } void handleRCDecimal(uint8_t val[], int pin) {