From: Uwe Bonnes Date: Wed, 20 Jul 2011 09:12:44 +0000 (+0200) Subject: Give usage hints for handling empty EEPROM X-Git-Tag: v1.0rc1~94 X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=commitdiff_plain;h=2e4e22c4f690d858b3d3a07f49b3ab8ad35b9cff Give usage hints for handling empty EEPROM --- diff --git a/examples/eeprom.c b/examples/eeprom.c index ef789a3..247589a 100644 --- a/examples/eeprom.c +++ b/examples/eeprom.c @@ -30,7 +30,8 @@ int read_decode_eeprom(struct ftdi_context *ftdi) ftdi_get_eeprom_value(ftdi, CHIP_SIZE, & value); if (value <0) { - fprintf(stderr, "No EEPROM found\n"); + fprintf(stderr, "No EEPROM found or EEPROM empty\n"); + fprintf(stderr, "On empty EEPROM, use -w option to write default values\n"); return -1; } fprintf(stderr, "Chip type %d ftdi_eeprom_size: %d\n", ftdi->type, value);