Skip to content

Commit a79ae25

Browse files
null check in setBrightness
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent 05c481c commit a79ae25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wled00/bus_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ uint32_t BusHub75Matrix::getPixelColor(unsigned pix) const {
10561056

10571057
void BusHub75Matrix::setBrightness(uint8_t b) {
10581058
_bri = b;
1059-
display->setBrightness(_bri);
1059+
if (display) display->setBrightness(_bri);
10601060
}
10611061

10621062
void BusHub75Matrix::show(void) {

0 commit comments

Comments
 (0)