Closed SMotlaq closed 4 years ago
I dont think si. Ee24_write automatically write any lenght data
I mean the while will never run. Because ( bytes < (_EEPROM_SIZE_KBIT / 8) * 1024)
is always false. My EEPROM is 2K. 2/8 is 0, the "bytes" variable is greater than (or equal to) 0 everytime.
oh . okay. I got it. thanks.
In this function:
If
_EEPROM_SIZE_KBIT
was less than 8, the while condition will be always false because for example 2 divided by 8 is 0 in non-floating values. I think the condition should be like this:while ( bytes < (_EEPROM_SIZE_KBIT * 256))
Also I didn't find out what does this condition mean 🤔. Anyway, thanks for your attention 🙏🏻
(I made a little changes in inputs and I2C handler pointer, but it isn't the problem 😅)