mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-12 16:50:15 +00:00
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:
1 parent
c89c31cd52
commit
7c833a6029
1 file changed
+2
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user