null check in setBrightness

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
netmindz 2025-09-13 14:10:04 +01:00 committed by GitHub
parent 05c481c5bb
commit a79ae25621
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1056,7 +1056,7 @@ uint32_t BusHub75Matrix::getPixelColor(unsigned pix) const {
void BusHub75Matrix::setBrightness(uint8_t b) {
_bri = b;
display->setBrightness(_bri);
if (display) display->setBrightness(_bri);
}
void BusHub75Matrix::show(void) {