From 7c833a6029fa01e2219e1601773f6353b3477681 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Wed, 5 Jan 2005 20:37:54 +0000 Subject: [PATCH] Patch by J. A. McMahan Jr.: This patch fixes a minor bug in the eeprog program that causes it to skip the first byte when printing out data read from the EEPROM in ASCII mode (that is, without the hex switch, -x, enabled). git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2829 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/eepromer/eeprog.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/prog/eepromer/eeprog.c b/prog/eepromer/eeprog.c index 22521c43..6213a802 100644 --- a/prog/eepromer/eeprog.c +++ b/prog/eepromer/eeprog.c @@ -128,6 +128,8 @@ int read_from_eeprom(struct eeprom *e, int addr, int size, int hex) i = 1; if(hex) printf("\n %.4x| %.2x ", addr, ch); + else + putchar(ch); while(--size) { die_if((ch = eeprom_read_current_byte(e)) < 0, "read error");