From 8f7c312ad1fe132c5279a0f5d0101834acf5857d Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Sat, 16 Mar 2013 18:58:29 +0100 Subject: digital/{ai,asserv,beacon,io,mimot}: change the seq position in i2c status --- digital/mimot/src/dirty/twi_proto.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'digital/mimot') diff --git a/digital/mimot/src/dirty/twi_proto.c b/digital/mimot/src/dirty/twi_proto.c index 2de2b1a1..f452fdc4 100644 --- a/digital/mimot/src/dirty/twi_proto.c +++ b/digital/mimot/src/dirty/twi_proto.c @@ -70,13 +70,13 @@ twi_proto_update (void) /* Update status. */ u8 status_with_crc[8]; u8 *status = &status_with_crc[1]; - status[0] = 0 + status[0] = twi_proto.seq; + status[1] = 0 | (control_state_is_blocked (&cs_aux[1].state) ? (1 << 3) : 0) | (control_state_is_finished (&cs_aux[1].state) ? (1 << 2) : 0) | (control_state_is_blocked (&cs_aux[0].state) ? (1 << 1) : 0) | (control_state_is_finished (&cs_aux[0].state) ? (1 << 0) : 0); - status[1] = PINC; - status[2] = twi_proto.seq; + status[2] = PINC; status[3] = v16_to_v8 (aux[0].pos, 1); status[4] = v16_to_v8 (aux[0].pos, 0); status[5] = v16_to_v8 (aux[1].pos, 1); -- cgit v1.2.3