From: Mikko Rasa Date: Sun, 27 Oct 2013 15:36:59 +0000 (+0200) Subject: Fix a bug in interpreting Motorola commands X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=3211a14c47886703f9d287b142f6916182f62b88;p=model-railway-devices.git Fix a bug in interpreting Motorola commands --- diff --git a/arducontrol/motorola.c b/arducontrol/motorola.c index 0ee6704..3e1a41c 100644 --- a/arducontrol/motorola.c +++ b/arducontrol/motorola.c @@ -136,7 +136,7 @@ uint8_t motorola_command(const uint8_t *cmd_buf, uint8_t cmd_length) if(addr>80) return INVALID_VALUE; - if(cmd_buf[2]&0x0E) + if(cmd_buf[2]&0x0C) return INVALID_VALUE; uint8_t aux = cmd_buf[2]&0x01;