summaryrefslogtreecommitdiffstats
path: root/cpu/arm920t/at91rm9200/i2c.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/arm920t/at91rm9200/i2c.c')
-rw-r--r--cpu/arm920t/at91rm9200/i2c.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpu/arm920t/at91rm9200/i2c.c b/cpu/arm920t/at91rm9200/i2c.c
index 569274082f..2565998e48 100644
--- a/cpu/arm920t/at91rm9200/i2c.c
+++ b/cpu/arm920t/at91rm9200/i2c.c
@@ -65,9 +65,8 @@ at91_xfer(unsigned char chip, unsigned int addr, int alen,
| ((rw == 1) ? AT91C_TWI_MREAD : 0);
/* Set TWI Internal Address Register with first messages data field */
- /* only one address byte is supported */
if (alen > 0)
- twi->TWI_IADR = addr & 0xff;
+ twi->TWI_IADR = addr;
length = len;
buf = buffer;
OpenPOWER on IntegriCloud