Skip to content

Commit 29dcdf8

Browse files
committed
Merge branch 'HUB75-AC' of github.com:netmindz/WLED into HUB75-AC
2 parents e37d4cd + 46e60b4 commit 29dcdf8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

wled00/bus_manager.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,9 +1126,11 @@ std::vector<LEDType> BusHub75Matrix::getLEDTypes() {
11261126
}
11271127

11281128
size_t BusHub75Matrix::getPins(uint8_t* pinArray) const {
1129-
pinArray[0] = mxconfig.mx_width;
1130-
pinArray[1] = mxconfig.mx_height;
1131-
pinArray[2] = mxconfig.chain_length;
1129+
if (pinArray) {
1130+
pinArray[0] = mxconfig.mx_width;
1131+
pinArray[1] = mxconfig.mx_height;
1132+
pinArray[2] = mxconfig.chain_length;
1133+
}
11321134
return 3;
11331135
}
11341136

0 commit comments

Comments
 (0)