We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5ed329e + 13bace4 commit 786e405Copy full SHA for 786e405
libraries/Wire/src/utility/twi.c
@@ -445,6 +445,7 @@ ISR(TWI_vect)
445
case TW_MR_DATA_ACK: // data received, ack sent
446
// put byte into buffer
447
twi_masterBuffer[twi_masterBufferIndex++] = TWDR;
448
+ __attribute__ ((fallthrough));
449
case TW_MR_SLA_ACK: // address sent, ack received
450
// ack if more bytes are expected, otherwise nack
451
if(twi_masterBufferIndex < twi_masterBufferLength){
@@ -530,6 +531,7 @@ ISR(TWI_vect)
530
531
twi_txBufferLength = 1;
532
twi_txBuffer[0] = 0x00;
533
}
534
535
// transmit first byte from buffer, fall
536
case TW_ST_DATA_ACK: // byte sent, ack returned
537
// copy data to output register
0 commit comments