From 5b6443fd9c0088670fdf88993e43c85f8fc68db5 Mon Sep 17 00:00:00 2001 From: starcalc Date: Tue, 28 Nov 2017 19:38:40 +0100 Subject: [PATCH] Kleiner Fehler korrigiert. Funktioniert nun in beide Richtungen. --- esp-videoswitcher.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esp-videoswitcher.ino b/esp-videoswitcher.ino index 427a778..cff272d 100644 --- a/esp-videoswitcher.ino +++ b/esp-videoswitcher.ino @@ -29,7 +29,8 @@ bool switchHandler(const HomieRange& range, const String& value) { // Nur solange wir noch Platz für Inputbytes haben... :) if (localByte <= 3) { nextspace = value.indexOf(' ', lastspace); - commandbytes[localByte] = (value.substring(lastspace,nextspace-1)).toInt(); // TEST for sanity + commandbytes[localByte] = (value.substring(lastspace,nextspace)).toInt(); + lastspace = nextspace+1; localByte++; } }