Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

flush

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> AVR-DOS
View previous topic :: View next topic  
Author Message
jeremywilson

Bascom Member



Joined: 11 Jul 2011
Posts: 68
Location: United States

usa.gif
PostPosted: Sun Aug 18, 2013 11:16 pm    Post subject: flush Reply with quote

How many bytes can be written between flushes when writing data to the SD card? Can/will the buffer flush itself when it gets full?
Back to top
View user's profile AIM Address
oe9vfj

Moderator



Joined: 17 Jun 2004
Posts: 269
Location: Austria, Hard

austria.gif
PostPosted: Sat Oct 26, 2013 6:28 am    Post subject: Reply with quote

FLUSH do not need additional buffer.
AVR-DOS write the Data to the card, if the Data sector with 512 Bytes is full. IF you close the file, AVR-DOS writes the data sector to the card in all condition and update the Dirctory information for the file like size and date/time.

FLUSH only updates all information to the card like CLOSE, but do not really close the file, so you can go on to write data to the file.

_________________
regards Josef

DOS - File System for BASCOM-AVR on http://members.aon.at/voegel
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> AVR-DOS All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum