-
Notifications
You must be signed in to change notification settings - Fork 13.3k
setTimeCallback is not working for ESP8266 with both SD.h and SDFS too #7682
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
waiting for feedback
Waiting on additional info. If it's not received, the issue may be closed.
Comments
earlephilhower
added a commit
to earlephilhower/Arduino
that referenced
this issue
Oct 30, 2020
The SDFS implementation didn't include plumbing to support user-supplied timestamp generators (for file create/write times) because the SDFat library doesn't support a callback parameter. Work around it by using a single, global (inside sdfs namespace) that the static timestamp callback member can see and use. Add a test of the feature in CI. Fixes esp8266#7682
Please give the PR above a try and report back. The plumbing for SDFat<->userTimeCallback wasn't built originally, as commented in the header. It's hooked in now in the PR with a CI test. |
Thank you!
|
earlephilhower
added a commit
that referenced
this issue
Oct 31, 2020
The SDFS implementation didn't include plumbing to support user-supplied timestamp generators (for file create/write times) because the SDFat library doesn't support a callback parameter. Work around it by using a single, global (inside sdfs namespace) that the static timestamp callback member can see and use. Add a test of the feature in CI. Fixes #7682
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
waiting for feedback
Waiting on additional info. If it's not received, the issue may be closed.
Basic Infos
Platform
Settings in IDE
Problem Description
setTimeCallback is not working for ESP8266 with both SD.h and SDFS too
TimeCallback function isn't calling at all
The file created normal but his timestamp is not expected.
And "*" is not printing, so my_time() does not call.
The part of the directory list output:
1961-11-25 17:32:20 new_file.txt 65
Similar issue
The text was updated successfully, but these errors were encountered: