From d83c54d010c066783ecaffbabc000a785915749d Mon Sep 17 00:00:00 2001 From: Jérémy Dufour Date: Sun, 20 Apr 2008 16:06:35 +0200 Subject: * digital/io/src - fix a bug in the communication with the asserv (thanks to ni). --- digital/io/src/asserv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'digital/io/src/asserv.c') diff --git a/digital/io/src/asserv.c b/digital/io/src/asserv.c index 60720f34..eaa14f6f 100644 --- a/digital/io/src/asserv.c +++ b/digital/io/src/asserv.c @@ -173,10 +173,10 @@ asserv_twi_send_command (uint8_t command, uint8_t length) if (!asserv_last_cmd_ack ()) return 1; - /* Put the command into the buffer */ - asserv_twi_buffer[0] = command; /* Put the sequence number */ - asserv_twi_buffer[1] = ++asserv_twi_seq; + asserv_twi_buffer[0] = ++asserv_twi_seq; + /* Put the command into the buffer */ + asserv_twi_buffer[1] = command; /* Send the prepared command */ return asserv_twi_send (length + 2); -- cgit v1.2.3