Skip to content
Commit 3d5931e5 authored by Heiko Schocher's avatar Heiko Schocher Committed by Tom Rini
Browse files

env: sf: fix environment in SPI NOR



commit 9a9d66f5 ("env: add spi_flash_read_env function")

breaks Environment functionality, as it reads only
until 2 \0 are found, but fills the buffer with 0x0
instead 0xff which leads in an incorrect crc sum.

Fix: init the read buffer with 0xff instead 0x00

Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
parent 2c3ec20f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment