Skip to content

Conversation

@h2zero
Copy link
Owner

@h2zero h2zero commented Jan 14, 2025

Follow up to #64

Avoids the stack or malloc use when printing to the uart.

@h2zero
Copy link
Owner Author

h2zero commented Jan 14, 2025

@tsl0922 Any issues with this after your PR is merged?

@tsl0922
Copy link
Contributor

tsl0922 commented Jan 15, 2025

It works fine.

It should be possible to implement Print::printf with vfctprintf in libc/printf too, but it is not exposed out.

https://github.com/h2zero/n-able-Arduino/blob/master/cores/nRF5/libc/printf/printf.h#L133-L134

@h2zero
Copy link
Owner Author

h2zero commented Jan 15, 2025

Closing as unnecessary now that #64 was updated.

@h2zero h2zero closed this Jan 15, 2025
@h2zero h2zero deleted the fix-printf-uart branch January 15, 2025 17:06
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.

3 participants