-- 
Uwe Bonnes                [email protected]

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
>From 411ff21b916280653c3e3626fb0ffc9ac03047d4 Mon Sep 17 00:00:00 2001
From: Uwe Bonnes <[email protected]>
Date: Tue, 12 Jul 2011 14:54:13 +0200
Subject: examples/eeprom: Give usage hints for handling empty EEPROM

---
 examples/eeprom.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

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


--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to [email protected]   

Reply via email to