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
parent 4c276fbc75
commit 9392ccec22

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");