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:
parent
4c276fbc75
commit
9392ccec22
@ -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");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user