Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Sunxi Tools
Commits
b78b4f31
Commit
b78b4f31
authored
May 07, 2012
by
Alejandro Mery
Browse files
fex2bin: fixed bug parsing GPIO port
parent
ca7c2773
Changes
1
Show whitespace changes
Inline
Side-by-side
fex2bin.c
View file @
b78b4f31
...
...
@@ -144,7 +144,7 @@ static int parse_fex(FILE *in, const char *filename, struct script *script)
;
else
{
char
*
end
;
int
port
=
*
p
++
-
'A'
;
int
port
=
*
p
++
-
'A'
+
1
;
long
v
=
strtol
(
p
,
&
end
,
10
);
if
(
end
==
p
)
goto
invalid_char_at_p
;
...
...
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