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

Logging in no_std (+ minor test fix) #6

Merged
merged 4 commits into from
Jan 9, 2023
Merged

Logging in no_std (+ minor test fix) #6

merged 4 commits into from
Jan 9, 2023

Conversation

davidedellagiustina
Copy link
Contributor

@davidedellagiustina davidedellagiustina commented Jan 4, 2023

defmt is a library commonly used to log information via a serial communication when developing on no_std targets. Data structures need to implement the defmt::Format trait in order to be "printable" by defmt. With this PR, I added an opt-in (because of usually tight size constraints) defmt feature that enables the relevant data structures to implement such trait.

Additionally, I fixed a small problem with Timestamp tests when the std feature is disabled (i.e. a test case was using a method defined only when std is enabled).

@davidedellagiustina davidedellagiustina marked this pull request as ready for review January 4, 2023 11:36
@davidedellagiustina davidedellagiustina changed the title Logging in no_std Logging in no_std (+ minor test fix) Jan 4, 2023
@JEnoch JEnoch merged commit 956d794 into atolab:master Jan 9, 2023
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