Fixed a bug in saveenv(). Credit: Markus Klotzbuecher.
authorBartlomiej Sieka <tur@semihalf.com>
Wed, 8 Mar 2006 07:32:43 +0000 (08:32 +0100)
committerBartlomiej Sieka <tur@semihalf.com>
Wed, 8 Mar 2006 07:32:43 +0000 (08:32 +0100)
> @@ -115,7 +115,7 @@ int saveenv(void)

common/env_nand.c

index 4896853530194ca0292ea83bf2bf139297b51275..4ae68c5a23e84892ed1580bffd06d1bafafb0038 100644 (file)
@@ -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... ");