summaryrefslogtreecommitdiffhomepage
path: root/digital
diff options
context:
space:
mode:
authorJérémy Dufour2008-04-20 16:06:35 +0200
committerJérémy Dufour2008-04-20 16:06:35 +0200
commitd83c54d010c066783ecaffbabc000a785915749d (patch)
treeac44af2f38b880e43e02e2cfa9c9bcac6473f5d6 /digital
parent9f1fe2b39c543178555a6fb035cd15e47d856357 (diff)
* digital/io/src
- fix a bug in the communication with the asserv (thanks to ni).
Diffstat (limited to 'digital')
-rw-r--r--digital/io/src/asserv.c6
1 files changed, 3 insertions, 3 deletions
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);