From 3d65390e2116f53f5ee6615ad92262613198b66c Mon Sep 17 00:00:00 2001 From: Bartlomiej Sieka Date: Wed, 8 Mar 2006 08:32:43 +0100 Subject: [PATCH] Fixed a bug in saveenv(). Credit: Markus Klotzbuecher. > @@ -115,7 +115,7 @@ int saveenv(void) --- common/env_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/env_nand.c b/common/env_nand.c index 4896853530..4ae68c5a23 100644 --- a/common/env_nand.c +++ b/common/env_nand.c @@ -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... "); -- 2.39.5