bug fix of flash.c

This commit is contained in:
NIIBE Yutaka
2010-11-08 14:46:04 +09:00
parent 074feda7ae
commit 260628f0b2

View File

@@ -256,7 +256,7 @@ flash_copying_gc (void)
data_pool = dst;
gpg_data_copy (data_pool + FLASH_DATA_POOL_HEADER_SIZE);
flash_erase_page ((uint32_t)src);
flash_program_halfword ((uint32_t)dst, generation);
flash_program_halfword ((uint32_t)dst, generation+1);
return 0;
}