1
0
mirror of https://github.com/DigitalDevices/dddvb.git synced 2023-10-10 13:37:43 +02:00

fix error handling and ID output length

This commit is contained in:
Ralph Metzler 2017-01-09 19:27:27 +01:00 committed by mvoelkel
parent c56f593a4c
commit cd5de95023

View File

@ -1310,10 +1310,10 @@ int read_id(int dev, int argc, char* argv[], uint32_t Flags)
break; break;
default: default:
printf("Unsupported Flash\n"); printf("Unsupported Flash\n");
break; return -1;
} }
printf("ID: "); printf("ID: ");
for (i = 0; i < 8; i++) for (i = 0; i < len; i++)
printf("%02x ", Id[i]); printf("%02x ", Id[i]);
printf("\n"); printf("\n");