Comments (3)
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.
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.
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)
- CH376s SPI USB issues
- file name Limitations HOT 7
- ch376s not working with esp32 HOT 4
- readFileUntil() return "false" for both EOF and the record terminator HOT 3
- interfacing ch376s module with build in sd HOT 3
- Accessing USB Pendrive and SD Card consecutively! HOT 6
- Init function hangs the application HOT 2
- Volume Label Information
- Files are not created when called using separate fileOpen, fileWrite and fileClose functions
- i can't write string to flash drive. HOT 2
- "Flash Drive Attached" instability
- Long filename support
- To pair the Ch376msc with the library ESP32-audioI2S
- drive is detached
- readFileUntil() crashing when trying to read more than the buffer size
- FS Struct needed HOT 2
- Reading pictures from USB HOT 2
- Speed on HW Serial and small buffer
- Library update required HOT 1
- Read a USB barcode, is it possible ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ch376msc.