FS doesnt seem to work - FileOpen, DirOpen etc #2258
Closed
satellitecam
started this conversation in
General
Replies: 1 comment
-
New information. If I have file operation tests in a custom watch face from the constructor, then select that watch face, the tests run perfectly fine using "/events.dat", files are created and read, and directories listed. Doing so from a custom BLE service loaded by NimbleController, even if the tests are called later on by a BLE characteristic write request, fails hard. Is FS not intiialized properly at the point where NimbleController initializes its services? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Im trying to implement a data file, using FS, but have encountered a brick wall.
When using "F:/events.dat", I am constantly getting errors back - either -2 (no entry), or -84 (corrupt).
When using "/events.dat", the device just crashes.
The same things are happening for DirOpen, using "F:/" and "/" paths respectively.
Im trying to follow whats being done in built in services and controllers, like Settings, which seem to work without issue. Also, my code works fine on Infinisim.
Am I doing something wrong here?
debug_log is a function ive defined for logging to the screen, defined much like printf.
Beta Was this translation helpful? Give feedback.
All reactions