Skip to content

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

3 participants