commit | 7bbbe18753e3076c32e3282a40aec3456afd6c2e | [log] [tgz] |
---|---|---|
author | Yannic Moog <y.moog@phytec.de> | Wed Dec 20 09:45:34 2023 +0100 |
committer | Fabio Estevam <festevam@denx.de> | Wed Dec 20 15:04:46 2023 -0300 |
tree | 3f224524d8d218ebeebd74b6a87c3dcef7fdd84e | |
parent | 4feeda65d7fc521778040c321df7037b508b46a9 [diff] |
board: phytec: phytec_som_detection: fix eeprom_data zero check In phytec_eeprom_data_init, after reading eeprom data into buffer, it is checked whether all bytes are 0x0 by iterating over chunks of the buffer. The offset, or index of the chunk, was never changed, leading to repeated comparison of only the first chunk. Use array notation and access chunk via array index to compare all chunks of the buffer. Signed-off-by: Yannic Moog <y.moog@phytec.de>