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/beacon/src/stub/simu_stub.host.c | 2 -- digital/beacon/src/twi_specific.c | 2 -- digital/beacon/src/twi_specific.h | 4 +--- 3 files changed, 1 insertion(+), 7 deletions(-) (limited to 'digital/beacon/src') diff --git a/digital/beacon/src/stub/simu_stub.host.c b/digital/beacon/src/stub/simu_stub.host.c index 38cf93fb..295ba1c5 100644 --- a/digital/beacon/src/stub/simu_stub.host.c +++ b/digital/beacon/src/stub/simu_stub.host.c @@ -78,8 +78,6 @@ simu_twi_proto_update (void) /* Update TWI slave buffer after each position update. */ uint8_t status[4 + 5 * UTILS_COUNT (simu_positions)]; uint8_t i, index = 1; - status[index++] = 0; - status[index++] = 0; status[index++] = simu_seq; for (i = 0; i < UTILS_COUNT (simu_positions); i++) { diff --git a/digital/beacon/src/twi_specific.c b/digital/beacon/src/twi_specific.c index d646546d..9bd35f5e 100644 --- a/digital/beacon/src/twi_specific.c +++ b/digital/beacon/src/twi_specific.c @@ -43,8 +43,6 @@ void twi_task(void) uint8_t RXlen; static uint8_t seq = 0; - TXbuffer[TWI_TX_RFU1_FIELD] = 0; - TXbuffer[TWI_TX_RFU2_FIELD] = 0; TXbuffer[TWI_TX_SEQ_FIELD] = seq; /* Opponent 1 */ diff --git a/digital/beacon/src/twi_specific.h b/digital/beacon/src/twi_specific.h index fc9a06c1..1aac01d0 100644 --- a/digital/beacon/src/twi_specific.h +++ b/digital/beacon/src/twi_specific.h @@ -45,8 +45,6 @@ typedef enum typedef enum { TWI_TX_CRC_FIELD, - TWI_TX_RFU1_FIELD, - TWI_TX_RFU2_FIELD, TWI_TX_SEQ_FIELD, TWI_TX_X1_MSB_FIELD, TWI_TX_X1_LSB_FIELD, @@ -67,4 +65,4 @@ void twi_task(void); /* Initialisze specific TWI */ void twi_init_specific(void); -#endif \ No newline at end of file +#endif -- cgit v1.2.3