File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -445,7 +445,7 @@ ISR(TWI_vect)
445
445
case TW_MR_DATA_ACK : // data received, ack sent
446
446
// put byte into buffer
447
447
twi_masterBuffer [twi_masterBufferIndex ++ ] = TWDR ;
448
- __attribute__ (( fallthrough ));
448
+ /* fall through */
449
449
case TW_MR_SLA_ACK : // address sent, ack received
450
450
// ack if more bytes are expected, otherwise nack
451
451
if (twi_masterBufferIndex < twi_masterBufferLength ){
@@ -532,7 +532,7 @@ ISR(TWI_vect)
532
532
twi_txBuffer [0 ] = 0x00 ;
533
533
}
534
534
// transmit first byte from buffer, fall
535
- __attribute__ (( fallthrough ));
535
+ /* fall through */
536
536
case TW_ST_DATA_ACK : // byte sent, ack returned
537
537
// copy data to output register
538
538
TWDR = twi_txBuffer [twi_txBufferIndex ++ ];
Original file line number Diff line number Diff line change @@ -446,7 +446,7 @@ ISR(TWI1_vect)
446
446
case TW_MR_DATA_ACK : // data received, ack sent
447
447
// put byte into buffer
448
448
twi_masterBuffer [twi_masterBufferIndex ++ ] = TWDR1 ;
449
- __attribute__ (( fallthrough ));
449
+ /* fall through */
450
450
case TW_MR_SLA_ACK : // address sent, ack received
451
451
// ack if more bytes are expected, otherwise nack
452
452
if (twi_masterBufferIndex < twi_masterBufferLength ){
@@ -533,7 +533,7 @@ ISR(TWI1_vect)
533
533
twi_txBuffer [0 ] = 0x00 ;
534
534
}
535
535
// transmit first byte from buffer, fall
536
- __attribute__ (( fallthrough ));
536
+ /* fall through */
537
537
case TW_ST_DATA_ACK : // byte sent, ack returned
538
538
// copy data to output register
539
539
TWDR1 = twi_txBuffer [twi_txBufferIndex ++ ];
You can’t perform that action at this time.
0 commit comments