Skip to content

Commit

Permalink
Fix calculate size of eeprom byte
Browse files Browse the repository at this point in the history
  • Loading branch information
eloaders committed Aug 25, 2014
1 parent b474471 commit 9a2f193
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions I-Nex/i-nex/.src/MDecode_dimms.module
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ Public Sub _inits()
spd_data_asc.Clear
spd_data_str.Clear
hFile = Open "/sys/bus/i2c/drivers/eeprom/" & Finfosys.ComboBox10.Text & "/eeprom" For Input

'file:///home/michal/Desktop/eeprom1
'hFile = Open "/home/michal/Desktop/eeprom1" For Input
While Not Eof(hFile)
Line Input #hFile, sLine
If Len(sLine) = 256 Then
If Len(sLine) <= 257 Then
For i = 0 To Len(sLine)
'Print Hex(Asc(Mid$(sLine, i + 1, 1)))
spd_data.Add(Hex(Asc(Mid$(sLine, i + 1, 1))))
Expand Down

0 comments on commit 9a2f193

Please sign in to comment.