Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Pfeiffer, Götz
MultiCAN
Commits
ab684bbe
Commit
ab684bbe
authored
Nov 11, 2019
by
Franksen, Benjamin
Browse files
scan: if ellsi_check fails, return the lastState (and don't call ourselves recursively)
parent
20cdb96b
Changes
1
Hide whitespace changes
Inline
Side-by-side
MultiCAN/src/drivers/scan/ellsi.c
View file @
ab684bbe
...
...
@@ -316,9 +316,9 @@ static int ellsi_check(int sock) {
ntohl
(
ack
.
payload
.
lastSubcommand
),
ntohl
(
ack
.
payload
.
lastState
));
}
else
{
return
ellsi_check
(
sock
)
;
return
-
1
;
}
return
0
;
return
ack
.
payload
.
lastState
;
}
static
int
ellsi_register
(
ellsi_state_t
*
state
)
{
...
...
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