From 93258fbceb836cfea5206aa14e9b46d30db124b6 Mon Sep 17 00:00:00 2001 From: batt Date: Fri, 7 Nov 2008 11:05:03 +0000 Subject: [PATCH] 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 --- bertos/drv/dataflash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1