Commit 36b4ce7a authored by Alejandro Mery's avatar Alejandro Mery
Browse files

bin2fex: show GPIO port id as %02d

parent e015c63b
......@@ -79,7 +79,7 @@ static inline int decompile_gpio(struct script_section *section,
port = 'A' + (gpio->port-1);
}
fprintf(out, "%s\t= port:P%c%d", entry->name, port, gpio->port_num);
fprintf(out, "%s\t= port:P%c%02d", entry->name, port, gpio->port_num);
for (const int *p = &gpio->mul_sel, *pe = p+4; p != pe; p++) {
if (*p == -1)
fputs("<default>", out);
......
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