summaryrefslogtreecommitdiffhomepage
path: root/digital/beacon
diff options
context:
space:
mode:
authorNicolas Schodet2013-03-16 18:58:29 +0100
committerNicolas Schodet2013-03-16 18:58:29 +0100
commit8f7c312ad1fe132c5279a0f5d0101834acf5857d (patch)
tree6884a21c1aa8fa28dac790e0443d0c2a2aee0d9b /digital/beacon
parent49f4a007eebbf5bc1ac3a9c2c86d742963547875 (diff)
digital/{ai,asserv,beacon,io,mimot}: change the seq position in i2c status
Diffstat (limited to 'digital/beacon')
-rw-r--r--digital/beacon/src/stub/simu_stub.host.c2
-rw-r--r--digital/beacon/src/twi_specific.c2
-rw-r--r--digital/beacon/src/twi_specific.h4
3 files changed, 1 insertions, 7 deletions
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