From 2623e85e6761c1bf9bcd9ac9c464f44ff57d7fda Mon Sep 17 00:00:00 2001 From: aleph Date: Mon, 9 May 2011 10:56:29 +0000 Subject: [PATCH] mt29f nand: fix kblock buffer initialization: load correctly all buffer. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4884 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/cortex-m3/drv/mt29f_sam3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bertos/cpu/cortex-m3/drv/mt29f_sam3.c b/bertos/cpu/cortex-m3/drv/mt29f_sam3.c index 03f5109f..ce2faded 100644 --- a/bertos/cpu/cortex-m3/drv/mt29f_sam3.c +++ b/bertos/cpu/cortex-m3/drv/mt29f_sam3.c @@ -882,7 +882,7 @@ bool mt29f_init(Mt29f *chip, struct Heap *heap, unsigned chip_select) } // Load the first block in the cache - return mt29f_readDirect(&chip->fd, 0, chip->fd.priv.buf, 0, MT29F_DATA_SIZE); + return mt29f_readDirect(&chip->fd, 0, chip->fd.priv.buf, 0, chip->fd.blk_size); } -- 2.25.1