Commit 90b74998 authored by Federico Vaga's avatar Federico Vaga

flasher: allow 'VMe.<n>' slot format

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent d5cddff3
......@@ -424,7 +424,14 @@ int main(int argc, char *argv[])
fclose(f);
slot = atoi(argv[1]);
rv = sscanf(argv[1], "%i", &slot);
if (!rv) {
rv = sscanf(argv[1], "VME.%i", &slot);
if (!rv) {
fprintf(stderr, "Can't parse slot '%s'\n", argv[1]);
return -1;
}
}
init_vme(slot);
enter_bootloader();
......
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