Skip to content

Fix mask for minutes field when computing modified_ns #6982

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

Merged
merged 1 commit into from
Oct 4, 2022

Conversation

electronerdian
Copy link

While building a tool that syncs code to my board via web workflow, I noticed that even after syncing, some files had mtimes 32 minutes older than the file being copied.

I found that _reply_directory_json was using a 5-bit mask for the minutes field when decoding the file time, but the minutes field is 6 bits wide. This PR corrects the mask.

Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for diagnosing this!

@dhalbert dhalbert merged commit 7f72280 into adafruit:main Oct 4, 2022
@electronerdian electronerdian deleted the webworkflow_times branch October 5, 2022 22:28
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.

2 participants