Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Anders Blomdell
processer
Commits
2e57987c
Commit
2e57987c
authored
Oct 17, 2018
by
Anders Blomdell
Browse files
Correct off-by-one error in encoder reading
parent
8a293e47
Changes
1
Hide whitespace changes
Inline
Side-by-side
ball_and_beam-2018/avr/ball_and_beam-2018.c
View file @
2e57987c
...
...
@@ -142,7 +142,7 @@ SIGNAL(USART_RXC_vect)
}
}
break
;
case
serialio_pollchannel
:
{
if
(
serialio_channel
<
6
)
{
if
(
serialio_channel
<
7
)
{
serial_readchannels
|=
(
1
<<
serialio_channel
);
}
else
if
(
serialio_channel
==
31
)
{
serial_readconfig
=
1
;
...
...
Write
Preview
Supports
Markdown
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