From: batt Date: Fri, 7 Nov 2008 11:05:03 +0000 (+0000) Subject: Merged from external project: X-Git-Tag: 2.0.0~28 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=93258fbceb836cfea5206aa14e9b46d30db124b6;p=bertos.git Merged from external project: ********** r22580 | batt | 2008-10-30 19:00:06 +0100 (gio, 30 ott 2008) | 1 line Return the correct len. ********** git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1906 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/drv/dataflash.c b/bertos/drv/dataflash.c index b2fb9c86..96c78cd9 100644 --- a/bertos/drv/dataflash.c +++ b/bertos/drv/dataflash.c @@ -297,7 +297,7 @@ static size_t dataflash_disk_buffer_write(struct BattFsSuper *d, pgaddr_t addr, { DataFlash *fd = DATAFLASH_CAST((KFile *)d->disk_ctx); dataflash_writeBlock(fd, addr, buf, len); - return true; + return len; } static size_t dataflash_disk_buffer_read(struct BattFsSuper *d, pgaddr_t addr, void *buf, size_t len)