Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ArduinoCore-avr
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ArduinoCore-avr
Commits
13bace4b
Unverified
Commit
13bace4b
authored
Aug 16, 2019
by
CombiesGit
Committed by
GitHub
Aug 16, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update twi.c
Added __attribute__ ((fallthrough));
parent
7a2e1cd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
libraries/Wire/src/utility/twi.c
libraries/Wire/src/utility/twi.c
+2
-0
No files found.
libraries/Wire/src/utility/twi.c
View file @
13bace4b
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment