From: aleph Date: Mon, 9 May 2011 10:56:29 +0000 (+0000) Subject: mt29f nand: fix kblock buffer initialization: load correctly all buffer. X-Git-Tag: 2.7.0~82 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=2623e85e6761c1bf9bcd9ac9c464f44ff57d7fda;p=bertos.git 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 --- 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); }