Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix bugs in printf logging code & add version to log #742

Merged
merged 5 commits into from
Jan 5, 2025

Conversation

mvgalen
Copy link
Collaborator

@mvgalen mvgalen commented Jan 3, 2025

What

Fix bugs in printf logging code & add Battery Emulator version and build date/time to log

Why

Fix the bug and being able to see the exact build version that is running

How

Fixed the code. Added printf containing version and date/time.

- Fix printf end of line detection
- Fix overwriting of timestamp in printf path
- Add version + build date/time to log
@mvgalen mvgalen added bug Something isn't working enhancement New feature or request labels Jan 3, 2025
Move logging of version/data/time to setup() to ensure it is also printed to serial.
@mvgalen mvgalen requested a review from No-Signal January 4, 2025 22:16
Copy link
Collaborator

@No-Signal No-Signal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved on the assumption that SD logging of the version isn't needed

@dalathegreat dalathegreat merged commit 6944561 into main Jan 5, 2025
104 checks passed
@mvgalen mvgalen deleted the enhancement/logging branch January 14, 2025 18:14
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants