Remove "strip" dependency in Segment class

This commit is contained in:
Blaz Kristan
2022-12-16 22:31:07 +01:00
parent 8619e8fc0b
commit 3c5838cafd
6 changed files with 43 additions and 43 deletions

View File

@@ -161,8 +161,8 @@ bool sendLiveLedsWs(uint32_t wsClient)
#ifndef WLED_DISABLE_2D
if (strip.isMatrix) {
buffer[1] = 2; //version
buffer[2] = strip.matrixWidth;
buffer[3] = strip.matrixHeight;
buffer[2] = Segment::maxWidth;
buffer[3] = Segment::maxHeight;
}
#endif