From acfdb3df7cb48fe9b28c3c9a8ec22006a11182a8 Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Sun, 15 Jun 2014 15:16:39 +0300 Subject: 4800 baud and channel bug fix --- rs485slave/src/sketch.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rs485slave/src/sketch.ino b/rs485slave/src/sketch.ino index cbabefc..ce206e6 100644 --- a/rs485slave/src/sketch.ino +++ b/rs485slave/src/sketch.ino @@ -8,7 +8,7 @@ #define RS485Transmit HIGH #define RS485Receive LOW -#define RS485Baud 115200 +#define RS485Baud 4800 #define SerialDebug 0 @@ -57,6 +57,7 @@ void loop() tree = (packet & 224) >> 5; if (tree == SlaveId) { channel = (packet & 28) >> 2; + channel = channel + RelayStartPin; mode = packet & 3; if (mode) { digitalWrite(channel, HIGH); -- cgit v1.3.1