Skip to content

Combined improvements and fixes#9

Open
teeks99 wants to merge 17 commits into
sushantnadkar:masterfrom
teeks99:main
Open

Combined improvements and fixes#9
teeks99 wants to merge 17 commits into
sushantnadkar:masterfrom
teeks99:main

Conversation

@teeks99
Copy link
Copy Markdown

@teeks99 teeks99 commented Jan 30, 2021

Fix several bugs, add unit testing, add summary output, descriptive throttled output.

This combines several of the other branches/pull requests into one.

Typo that causes a crash if called.
In __verify_command the source.lower() is used, so everything in the
sources must also be lower or it will never match.
In addition to the existing method that returns the bit field, return a
dictionary with descriptive values, similar to mem_oom() and
mem_reloc_stats().
Added a simple helper function that prints out all the relevant
details. Set it to be what runs from main with a
`python3 -m vcgencmd` call.
There were a couple that uncovered bugs, they are marked TODO
Included whitespace in the split so that it would only pickup the
column separated key/value pairs. This fixes the bug where the
`mmal-opaque` key was getting chopped up.
It appears that the string could be "720 480 24\n" or
"0 0 0 no display\n". Splitting on any whitespace (default) handles
both.
@teeks99
Copy link
Copy Markdown
Author

teeks99 commented Jan 30, 2021

@sushantnadkar Do you have any interest in pulling in these changes and releasing a new version to pypi? If not, I can create my own package there with a different name. If you're interested but just busy, no rush, just let me know please.

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.

1 participant