This commit is contained in:
Blaz Kristan 2023-01-30 17:11:14 +01:00
parent c6fd11157a
commit 31fa73518b

View File

@ -1611,7 +1611,7 @@ void WS2812FX::deserializeMap(uint8_t n) {
customMappingSize = map.size();
customMappingTable = new uint16_t[customMappingSize];
for (uint16_t i=0; i<customMappingSize; i++) {
customMappingTable[i] = (uint16_t) map[i];
customMappingTable[i] = (uint16_t) (map[i]<0 ? 0xFFFFU : map[i]);
}
}