Skip to content
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

Have the getModifyTime/create... check for SDFat returning 0's #39

Merged

Conversation

KurtE
Copy link
Contributor

@KurtE KurtE commented Dec 22, 2021

@PaulStoffregen @mjs513

If they return 0, we bail and return false. This implied that no date/time was found, and or calling code was blindly using the values like month of 255...

This avoids/fixes issue with the SD listfiles faulting if SDFat returned 0s for date and time we translate for example month to 255, which we index and try to print...

Feels cleaner than hacking it in the sketch code

If they return 0, we bail and return false.  This implied that no date/time was found, and  or calling code was blindly using the values like month of 255...
@PaulStoffregen PaulStoffregen merged commit d050f67 into PaulStoffregen:Juse_Use_SdFat Dec 22, 2021
@PaulStoffregen
Copy link
Owner

Thanks!

@KurtE KurtE deleted the check_dates_for_0 branch December 22, 2021 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants