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

Override printf for Uart #68

Closed
wants to merge 1 commit into from
Closed

Override printf for Uart #68

wants to merge 1 commit into from

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.

2 participants