fex2bin: fixed bug parsing GPIO port

This commit is contained in:
Alejandro Mery 2012-05-07 12:34:47 +02:00
parent ca7c27734f
commit b78b4f31ec

View File

@ -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;