diff options
| author | Yuval Adam <yuv.adm@gmail.com> | 2014-06-15 15:16:39 +0300 |
|---|---|---|
| committer | Yuval Adam <yuv.adm@gmail.com> | 2014-06-15 15:16:39 +0300 |
| commit | acfdb3df7cb48fe9b28c3c9a8ec22006a11182a8 (patch) | |
| tree | 27dbc08c0bbeed420f803ac595114fac05a14b70 | |
| parent | 08954a9284d0af8f288256521c4a25c1649747ec (diff) | |
4800 baud and channel bug fix
| -rw-r--r-- | rs485slave/src/sketch.ino | 3 |
1 files changed, 2 insertions, 1 deletions
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); |
