kopia lustrzana https://github.com/Aircoookie/WLED
adding initialization to vStrip, added comment on padding bytes
rodzic
a88436c620
commit
17d59d3337
|
@ -368,6 +368,7 @@ typedef struct Segment {
|
||||||
};
|
};
|
||||||
uint8_t startY; // start Y coodrinate 2D (top); there should be no more than 255 rows
|
uint8_t startY; // start Y coodrinate 2D (top); there should be no more than 255 rows
|
||||||
uint8_t stopY; // stop Y coordinate 2D (bottom); there should be no more than 255 rows
|
uint8_t stopY; // stop Y coordinate 2D (bottom); there should be no more than 255 rows
|
||||||
|
//note: here are 3 free bytes of padding
|
||||||
char *name;
|
char *name;
|
||||||
|
|
||||||
// runtime data
|
// runtime data
|
||||||
|
|
|
@ -712,7 +712,7 @@ void IRAM_ATTR_YN Segment::setPixelColor(int i, uint32_t col)
|
||||||
{
|
{
|
||||||
if (!isActive()) return; // not active
|
if (!isActive()) return; // not active
|
||||||
#ifndef WLED_DISABLE_2D
|
#ifndef WLED_DISABLE_2D
|
||||||
int vStrip;
|
int vStrip = 0;
|
||||||
#endif
|
#endif
|
||||||
if (i >= virtualLength() || i<0) // pixel would fall out of segment, check if this is a virtual strip NOTE: this is almost always false if not virtual strip, saves the calculation on 'standard' call
|
if (i >= virtualLength() || i<0) // pixel would fall out of segment, check if this is a virtual strip NOTE: this is almost always false if not virtual strip, saves the calculation on 'standard' call
|
||||||
{
|
{
|
||||||
|
|
Ładowanie…
Reference in New Issue