Skip to content

Dev#6

Merged
vjardin merged 5 commits intovjardin:mainfrom
thbtcllt:dev
Nov 24, 2025
Merged

Dev#6
vjardin merged 5 commits intovjardin:mainfrom
thbtcllt:dev

Conversation

@thbtcllt
Copy link
Collaborator

Same as previous one but after reforking original project to fix issue related to a push force that changes the sha of some commits

Copy link
Owner

@vjardin vjardin left a comment

Choose a reason for hiding this comment

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

some few cosmetic changes are needed.

@thbtcllt
Copy link
Collaborator Author

ok

Copy link
Collaborator Author

@thbtcllt thbtcllt left a comment

Choose a reason for hiding this comment

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

Just one comment about use of goto

tcollet added 5 commits November 24, 2025 14:46
Purpose of this command is to:
- be able to configure any BMR where commands behavior is different from
  456 or 685
- access non documented commands (if any)
Use the same order of the get that is more logical
Fault configuration for voltage or intensity will be added later.
Useless call:
json_object_set_new(o, key + (sizeof("") - 1), json_object_get(o, key))
break the json object and then call to json_print_or_pretty do a
segfault as json_dumps return NULL and this case is not checked before
calling put(s)

A check is added in function json_print_or_pretty to avoid the segfault
(an error message is displayed) and useless call is removed.
Save and restore are required for any commands and not only for the
USER_DATA.
Two new commands are created for that and README is changed accordingly.
For these new commands BMT456 does not exepct call to sendbyte but a
write byte on the command with a dummy value.
A test is done on the BMR version to know how to execute the command.

Moreover for the restore two options are provided to reload the default
configuration or the last saved configuration.
No automatic save is done after a restore.
@vjardin vjardin merged commit f41beee into vjardin:main Nov 24, 2025
8 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.

2 participants