Fixed a bug in saveenv(). Credit: Markus Klotzbuecher.
> @@ -115,7 +115,7 @@ int saveenv(void)
This commit is contained in:
parent
addb2e1650
commit
3d65390e21
@ -115,7 +115,7 @@ int saveenv(void)
|
||||
int total, ret = 0;
|
||||
|
||||
puts ("Erasing Nand...");
|
||||
if (nand_erase(&nand_info[0], CFG_NEW_OFFSET, CFG_ENV_SIZE))
|
||||
if (nand_erase(&nand_info[0], CFG_ENV_OFFSET, CFG_ENV_SIZE))
|
||||
return 1;
|
||||
|
||||
puts ("Writing to Nand... ");
|
||||
|
Loading…
Reference in New Issue
Block a user