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

Fix unchecked optional access in Charger.cpp #626

Merged
merged 4 commits into from
Apr 12, 2024

Conversation

Pietfried
Copy link
Contributor

@Pietfried Pietfried commented Apr 9, 2024

Describe your changes

  • Fixed unchecked optional access in call_start_transaction of powermeter
  • Moved ownership of session_uuid to Charger class
  • Using proper arguments in call_start_transaction and call_stop_transaction of powermeter

Issue ticket number and link

Checklist before requesting a review

  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • I read the contribution documentation and made sure that my changes meet its requirements

…eter

* Moved ownership of session_uuid to Charger class
* Using proper arguments in call_start_transaction and call_stop_transaction of powermeter

Signed-off-by: pietfried <[email protected]>
@Pietfried
Copy link
Contributor Author

@golovasteek : FYI. Not sure if the changes are relevant for your platform

* moved generate_session_uuid outside Charger class
* made get_session_id const
* using string clear func

Signed-off-by: pietfried <[email protected]>
@Pietfried Pietfried merged commit 07f25b5 into main Apr 12, 2024
4 of 5 checks passed
@Pietfried Pietfried deleted the bugfix/powermeter-transaction branch April 12, 2024 14:22
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