aboutsummaryrefslogtreecommitdiff
path: root/libraries/Wire/src/utility
diff options
context:
space:
mode:
authorDavid Madison <dmadison@users.noreply.github.com>2020-02-01 04:25:52 -0500
committerDavid Madison <dmadison@users.noreply.github.com>2020-02-01 04:25:52 -0500
commit923b4441fed740c5ff1e42bb8f2f58ea87d4eaf7 (patch)
tree39aad14af9ba55cc9f26f2920f6ff873552f4c62 /libraries/Wire/src/utility
parent59dd6085ec8ec0a5438c1019e982fefb77f485d3 (diff)
parent0e7fae85bdfbab43242374c0289cdd806d13b0bc (diff)
Merge ArduinoCore-avr Release 1.8.2
Diffstat (limited to 'libraries/Wire/src/utility')
-rw-r--r--libraries/Wire/src/utility/twi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libraries/Wire/src/utility/twi.c b/libraries/Wire/src/utility/twi.c
index 171af73..1a35146 100644
--- a/libraries/Wire/src/utility/twi.c
+++ b/libraries/Wire/src/utility/twi.c
@@ -445,6 +445,7 @@ ISR(TWI_vect)
case TW_MR_DATA_ACK: // data received, ack sent
// put byte into buffer
twi_masterBuffer[twi_masterBufferIndex++] = TWDR;
+ __attribute__ ((fallthrough));
case TW_MR_SLA_ACK: // address sent, ack received
// ack if more bytes are expected, otherwise nack
if(twi_masterBufferIndex < twi_masterBufferLength){
@@ -530,6 +531,7 @@ ISR(TWI_vect)
twi_txBufferLength = 1;
twi_txBuffer[0] = 0x00;
}
+ __attribute__ ((fallthrough));
// transmit first byte from buffer, fall
case TW_ST_DATA_ACK: // byte sent, ack returned
// copy data to output register