mirror of
https://github.com/wled/WLED.git
synced 2025-07-08 03:16:32 +00:00
Remove erroneous file
Fix constant dependancy
This commit is contained in:
parent
b50e6e0d90
commit
9cb3531e2d
File diff suppressed because it is too large
Load Diff
@ -1030,7 +1030,6 @@ void Segment::refreshLightCapabilities() {
|
|||||||
if (bus->getStart() >= segStopIdx) continue;
|
if (bus->getStart() >= segStopIdx) continue;
|
||||||
if (bus->getStart() + bus->getLength() <= segStartIdx) continue;
|
if (bus->getStart() + bus->getLength() <= segStartIdx) continue;
|
||||||
|
|
||||||
//uint8_t type = bus->getType();
|
|
||||||
if (bus->hasRGB() || (strip.cctFromRgb && bus->hasCCT())) capabilities |= SEG_CAPABILITY_RGB;
|
if (bus->hasRGB() || (strip.cctFromRgb && bus->hasCCT())) capabilities |= SEG_CAPABILITY_RGB;
|
||||||
if (!strip.cctFromRgb && bus->hasCCT()) capabilities |= SEG_CAPABILITY_CCT;
|
if (!strip.cctFromRgb && bus->hasCCT()) capabilities |= SEG_CAPABILITY_CCT;
|
||||||
if (strip.correctWB && (bus->hasRGB() || bus->hasCCT())) capabilities |= SEG_CAPABILITY_CCT; //white balance correction (CCT slider)
|
if (strip.correctWB && (bus->hasRGB() || bus->hasCCT())) capabilities |= SEG_CAPABILITY_CCT; //white balance correction (CCT slider)
|
||||||
@ -1563,7 +1562,7 @@ uint16_t WS2812FX::getLengthPhysical() const {
|
|||||||
unsigned len = 0;
|
unsigned len = 0;
|
||||||
for (size_t b = 0; b < BusManager::getNumBusses(); b++) {
|
for (size_t b = 0; b < BusManager::getNumBusses(); b++) {
|
||||||
Bus *bus = BusManager::getBus(b);
|
Bus *bus = BusManager::getBus(b);
|
||||||
if (bus->getType() >= TYPE_NET_DDP_RGB) continue; //exclude non-physical network busses
|
if (bus->isVirtual()) continue; //exclude non-physical network busses
|
||||||
len += bus->getLength();
|
len += bus->getLength();
|
||||||
}
|
}
|
||||||
return len;
|
return len;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user