diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2011-08-22 13:03:56 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2011-08-22 13:03:56 +0000 |
commit | d0ac8e46f958e81f78876740202ca489569f5689 (patch) | |
tree | 43b71715d52e266156428023db2b83b81cf3f540 /LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.c | |
parent | 40946a570405a522b2cd04295bc2dad746b936fc (diff) | |
download | lufa-d0ac8e46f958e81f78876740202ca489569f5689.tar.gz lufa-d0ac8e46f958e81f78876740202ca489569f5689.tar.bz2 lufa-d0ac8e46f958e81f78876740202ca489569f5689.zip |
Renamed the JTAG_DEBUG_ASSERT() macro to JTAG_ASSERT().
Changed the reports in the GenericHID device demos to control the board LEDs, to reduce user confusion over the callback routines.
Fixed swapped TWI_ADDRESS_READ and TWI_ADDRESS_WRITE values.
Fixed TWI_ReadPacket() not releasing the TWI bus on read completion.
Diffstat (limited to 'LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.c')
-rw-r--r-- | LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.c b/LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.c index 2f65921ca..d4f594f3b 100644 --- a/LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.c +++ b/LUFA/Drivers/Peripheral/AVR8/TWI_AVR8.c @@ -117,7 +117,7 @@ uint8_t TWI_ReadPacket(const uint8_t SlaveAddress, { while (Length--) { - if (!(TWI_ReceiveByte(Buffer++, (Length == 0)))) + if (!(TWI_ReceiveByte(Buffer++, (Length == 1)))) { ErrorCode = TWI_ERROR_SlaveNAK; break; |