summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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);