Commit b78b4f31 authored by Alejandro Mery's avatar Alejandro Mery
Browse files

fex2bin: fixed bug parsing GPIO port

parent ca7c2773
...@@ -144,7 +144,7 @@ static int parse_fex(FILE *in, const char *filename, struct script *script) ...@@ -144,7 +144,7 @@ static int parse_fex(FILE *in, const char *filename, struct script *script)
; ;
else { else {
char *end; char *end;
int port = *p++ - 'A'; int port = *p++ - 'A' + 1;
long v = strtol(p, &end, 10); long v = strtol(p, &end, 10);
if (end == p) if (end == p)
goto invalid_char_at_p; goto invalid_char_at_p;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment