GithubHelp home page GithubHelp logo

Append to new file about ch376msc HOT 3 CLOSED

djuseeq avatar djuseeq commented on September 11, 2024
Append to new file

from ch376msc.

Comments (3)

djuseeq avatar djuseeq commented on September 11, 2024

Hi, yes i reproduced. Actually flashDrive.openFile(); function returns a value.If the file is not exist then return 43h what is ERR_FOUND_NAME answer from the chip. So it has to be "if condition". if(flashDrive.openFile() == ANSW_USB_INT_SUCCESS){ flashDrive.moveCursor(CURSOREND); } .Thanks, i will update the example code.

from ch376msc.

andrewerrington avatar andrewerrington commented on September 11, 2024

Thanks! My current workaround is openFile() then getFileSize(). If the file length is zero then I can use writeFile(), but if it's not then I use moveCursor() then writeFile().

I'm using your code for a simple data logger. I have noticed a couple of odd things, so if I can't get them working then I'll post an issue here. Thanks for taking a look at this one.

from ch376msc.

djuseeq avatar djuseeq commented on September 11, 2024

Ok, I'm glad I could help. Then i will close this issue and if you find more problems,then you are welcome to open a new issue ;)

from ch376msc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.