From 23d7ac2beac7a4f903c25fd662c3ea59dca1898b Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Fri, 20 May 2016 08:33:15 +0200 Subject: [PATCH 1/1] ftdi_eeprom: Improve usability of flash_raw mode --- ftdi_eeprom/main.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/ftdi_eeprom/main.c b/ftdi_eeprom/main.c index 7c6920b..d1c4794 100644 --- a/ftdi_eeprom/main.c +++ b/ftdi_eeprom/main.c @@ -611,7 +611,15 @@ int main(int argc, char *argv[]) exit (-1); } + printf("Flashing raw eeprom from file %s (%d bytes)\n", + filename, my_eeprom_size); + ftdi_set_eeprom_buf(ftdi, eeprom_buf, my_eeprom_size); + } else + { + printf ("ERROR: flash_raw mode enabled, but no eeprom filename " + "given in config file.\n"); + exit (-1); } } printf ("FTDI write eeprom: %d\n", ftdi_write_eeprom(ftdi)); -- 1.7.1