summaryrefslogtreecommitdiff
path: root/fatfs/doc/en/forward.html
diff options
context:
space:
mode:
Diffstat (limited to 'fatfs/doc/en/forward.html')
-rw-r--r--fatfs/doc/en/forward.html7
1 files changed, 3 insertions, 4 deletions
diff --git a/fatfs/doc/en/forward.html b/fatfs/doc/en/forward.html
index 714c48d..eddb051 100644
--- a/fatfs/doc/en/forward.html
+++ b/fatfs/doc/en/forward.html
@@ -45,7 +45,6 @@ FRESULT f_forward (
<a href="rc.html#ok">FR_OK</a>,
<a href="rc.html#de">FR_DISK_ERR</a>,
<a href="rc.html#ie">FR_INT_ERR</a>,
-<a href="rc.html#nr">FR_NOT_READY</a>,
<a href="rc.html#io">FR_INVALID_OBJECT</a>,
<a href="rc.html#tm">FR_TIMEOUT</a>
</p>
@@ -54,13 +53,13 @@ FRESULT f_forward (
<div class="para desc">
<h4>Description</h4>
-<p>The <tt>f_forward()</tt> function reads the data from the file and forward it to the outgoing stream without data buffer. This is suitable for small memory system because it does not require any data buffer at application module. The file pointer of the file object increases in number of bytes forwarded. In case of <tt class="arg">*bf</tt> is less than <tt class="arg">btf</tt> without error, it means the requested bytes could not be transferred due to end of file or stream goes busy during data transfer.</p>
+<p>The <tt>f_forward</tt> function reads the data from the file and forward it to the outgoing stream without data buffer. This is suitable for small memory system because it does not require any data buffer at application module. The file pointer of the file object increases in number of bytes forwarded. In case of <tt class="arg">*bf</tt> is less than <tt class="arg">btf</tt> without error, it means the requested bytes could not be transferred due to end of file or stream goes busy during data transfer.</p>
</div>
<div class="para comp">
<h4>QuickInfo</h4>
-<p>Available when <tt>_USE_FORWARD == 1</tt> and <tt>_FS_TINY == 1</tt>.</p>
+<p>Available when <tt>_USE_FORWARD == 1</tt>.</p>
</div>
@@ -113,7 +112,7 @@ FRESULT play_file (
if (rc) return rc;
<span class="c">/* Repeat until the file pointer reaches end of the file */</span>
- while (rc == FR_OK &amp;&amp; fil.fptr &lt; fil.fsize) {
+ while (rc == FR_OK &amp;&amp; !f_eof(&amp;fil)) {
<span class="c">/* any other processes... */</span>