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
This commit is contained in:
Jean Delvare committed 2005-01-05 20:37:54 +00:00
1 parent c89c31cd52
commit 7c833a6029
1 file changed
+2
+2
View File
@@ -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");