Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Nov 23, 2019

Recently a forum user asked for help decoding the values returned by vcgencmd get_throttled. (https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=257569). This flagged up that the explanation of how to do this in the docs could be improved.

Explain how to read off the individual bit values from the hex value returned by the command.

@ghost
Copy link
Author

ghost commented Nov 23, 2019

Ready for review.

@lurch
Copy link
Contributor

lurch commented Dec 2, 2019

@JamesH65 Maybe it's also worth clarifying when the "has occurred" bits get cleared to 0? Is it every time the Pi reboots / powers-off ?

@JamesH65
Copy link
Contributor

JamesH65 commented Dec 2, 2019

@6by9 quickly looked at the code, and it appears that it will also be reset if you add a an extra parameter to get_throtled, so vcgencmd get_throttled 1 will also reset the "has occurred" bits.

@JamesH65 JamesH65 merged commit 204e582 into raspberrypi:master Dec 17, 2019
@ghost ghost deleted the patch-1 branch December 17, 2019 17:21
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