Skip to content

Improve MK2 frames handling#45

Merged
ncthompson merged 2 commits into
diebietse:masterfrom
bclermont:patch-1
Feb 17, 2026
Merged

Improve MK2 frames handling#45
ncthompson merged 2 commits into
diebietse:masterfrom
bclermont:patch-1

Conversation

@bclermont

Copy link
Copy Markdown
Contributor

WIP to fix #44

@bclermont

Copy link
Copy Markdown
Contributor Author

Not ready yet

Comment thread mk2driver/mk2.go
if checkChecksum(l, frame[0], frame[1:]) {
switch frame[0] {
case bootupFrameHeader:
m.setTarget()

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

setTarget() is only executed once at startup of invertergui process. this make sure it's executed everytime Victron is started even if invertergui is running while it happens

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think that should be all

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

What do you mean by "should be all" ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sorry I responded to this comment but in the wrong thread :D #44 (comment)

@codecov

codecov Bot commented Feb 17, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 15.38462% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 44.72%. Comparing base (4e5da3f) to head (bda5aa9).
⚠️ Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
mk2driver/mk2.go 15.38% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #45      +/-   ##
==========================================
- Coverage   45.16%   44.72%   -0.45%     
==========================================
  Files          13       13              
  Lines         890      901      +11     
==========================================
+ Hits          402      403       +1     
- Misses        470      480      +10     
  Partials       18       18              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ncthompson
ncthompson merged commit 959d1e3 into diebietse:master Feb 17, 2026
1 of 3 checks passed
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.

Turn off/on victron stop metrics changes

2 participants