From b78b4f31ec0a0f45b5ccb013ebf53d62bffbfe70 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Mon, 7 May 2012 12:34:47 +0200 Subject: [PATCH] fex2bin: fixed bug parsing GPIO port --- fex2bin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fex2bin.c b/fex2bin.c index d9e846b..8f8b392 100644 --- a/fex2bin.c +++ b/fex2bin.c @@ -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;