show only ledmap pixels, show bus lengths in segment visualization
index.js: segment visualization: - max width if no pc - don't show nr if only one segment - Ledmap nr color depending on bus output FX_2Dfcn.cpp / FX_fcn.cpp - don't show ledmap -1 pixels json.cpp: add busses.length to outputs ws.cpp: peek back to strip.gPC only
This commit is contained in:
@@ -2016,12 +2016,8 @@ void WS2812FX::deserializeMap(uint8_t n) {
|
||||
#endif
|
||||
customMappingSize = map.size();
|
||||
customMappingTable = new uint16_t[customMappingSize];
|
||||
for (uint16_t i=0; i<customMappingSize; i++) {
|
||||
if (i<map.size())
|
||||
customMappingTable[i] = (uint16_t) (map[i]<0 ? 0xFFFFU : map[i]);
|
||||
else
|
||||
customMappingTable[i] = (uint16_t) 0xFFFFU; //fill the map entirely
|
||||
}
|
||||
for (uint16_t i=0; i<MIN(customMappingSize, map.size()); i++)
|
||||
customMappingTable[i] = (uint16_t) (map[i]<0 ? 0xFFFFU : map[i]);
|
||||
loadedLedmap = n;
|
||||
|
||||
#ifdef WLED_DEBUG
|
||||
|
||||
Reference in New Issue
Block a user