Skip to content

v1.1.10 - update getFileBlock #40

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 7 commits into from
Feb 27, 2024
Merged

v1.1.10 - update getFileBlock #40

merged 7 commits into from
Feb 27, 2024

Conversation

PaulZC
Copy link
Collaborator

@PaulZC PaulZC commented Feb 27, 2024

No description provided.

fronders and others added 7 commits February 5, 2024 10:28
This fixes #38
When used with ARM GCC Toolchain supplied with Arduino_STM32 newlib nano version is built without C99 formats support, so the %zu format specifier doesn't work, and instead of putting the number it puts "zu" into the resulting string
This adds more error checking and command formatting to make it similar to other methods. Also makes detecting comma_idx (offset of file size in the response) more reliable
Added sprintf arguments type casting from size_t to unsigned long (or unsigned long long on 64-bit arch)
This adds response error checking for getFileBlock and minor formatting fixes to make it similar to other methods
After more testing, kept only casting from size_t to unsigned long (compatible with 32-bit MCUs)
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.

%zu not supported by newlib's printf in Arduino_STM32 toolchain
2 participants