]> git.tdb.fi Git - model-railway-devices.git/blobdiff - arducontrol/motorola.c
Pass command data through a pointer
[model-railway-devices.git] / arducontrol / motorola.c
index 33cf1c0a9209054391b6c380000cdf34ce1ebd85..0ee6704ede87aaba476f2cc758223fe072d60cd6 100644 (file)
@@ -1,4 +1,4 @@
-#include "interface.h"
+#include "commands.h"
 #include "motorola.h"
 #include "output.h"
 
@@ -125,7 +125,7 @@ void motorola_solenoid_packet(uint8_t addr, uint8_t output, uint8_t state)
        packet.ready = 1;
 }
 
-uint8_t motorola_command(void)
+uint8_t motorola_command(const uint8_t *cmd_buf, uint8_t cmd_length)
 {
        if(cmd_buf[0]==MOTOROLA_SPEED || cmd_buf[0]==MOTOROLA_SPEED_DIRECTION || cmd_buf[0]==MOTOROLA_SPEED_FUNCTION)
        {