Skip to content
Commit 71714cda authored by Yannic Moog's avatar Yannic Moog Committed by Fabio Estevam
Browse files

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: default avatarYannic Moog <y.moog@phytec.de>
parent da37f785
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment