diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2014-01-10 15:15:26 -0500 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2014-01-10 15:15:26 -0500 |
commit | 3400e7bec16a9a7c80b52b304da2311cb3932ded (patch) | |
tree | afea9d4e9d99df54364900f64d9ac771d6f54c28 /libmaple/i2c.c | |
parent | 644d05beb7c32c2823615948217ffec4c5daf878 (diff) | |
download | librambutan-3400e7bec16a9a7c80b52b304da2311cb3932ded.tar.gz librambutan-3400e7bec16a9a7c80b52b304da2311cb3932ded.zip |
Revert "Added I2C slave echo example in examples folder. Using another maple, write a byte and then read."
This reverts commit 594724951553a882758c11497a4f03828b4f43e6.
Reverting pull request #54, which breaks examples/i2c-mcp4725-dac.cpp.
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
Diffstat (limited to 'libmaple/i2c.c')
-rw-r--r-- | libmaple/i2c.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libmaple/i2c.c b/libmaple/i2c.c index bbbf123..6c609d9 100644 --- a/libmaple/i2c.c +++ b/libmaple/i2c.c @@ -458,10 +458,6 @@ void _i2c_irq_handler(i2c_dev *dev) { if (sr1 & I2C_SR1_RXNE) { if (dev->config_flags & I2C_SLAVE_USE_RX_BUFFER) { /* Fill the buffer with the contents of the data register */ - /* These is potential for buffer overflow here, so we should - * really store the size of the array. This is expensive in - * the ISR so left out for now. We must trust the implementor! - */ dev->i2c_slave_msg->data[dev->i2c_slave_msg->xferred++] = dev->regs->DR; dev->i2c_slave_msg->length++; } |