Skip to content

rgbmatrix: Don't crash when setting brightness=0 #3543

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

Merged
merged 1 commit into from
Oct 12, 2020

Conversation

jepler
Copy link

@jepler jepler commented Oct 12, 2020

If the display is paused, _PM_swapbuffer_maybe will never return. So, when brightness is 0, refresh does nothing. This makes it necessary to update the display when unpausing.

Closes: #3524

If the display is paused, `_PM_swapbuffer_maybe` will never return.
So, when brightness is 0, refresh does nothing.  This makes it necessary
to update the display when unpausing.

Closes: adafruit#3524
@jepler jepler requested a review from tannewt October 12, 2020 20:55
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Thanks for the fix! I wonder if @PaintYourDragon should add brightness support when adding gamma correction. It makes sense to do those both at the same time.

@tannewt tannewt merged commit 2e5bea2 into adafruit:main Oct 12, 2020
@PaintYourDragon
Copy link

Working on it, yep.

@jepler jepler deleted the rgbmatrix-brighness-crash branch November 3, 2021 21:10
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.

rgbmatrix: setting brightness to 0 crashes CircuitPython
3 participants