diff --git a/wled00/FX.cpp b/wled00/FX.cpp index 5ed43a95..efe626c6 100644 --- a/wled00/FX.cpp +++ b/wled00/FX.cpp @@ -1966,7 +1966,7 @@ uint16_t WS2812FX::mode_fire_2012() const uint16_t rows = isMatrix && !isTransposed ? height : width; const uint16_t cols = isMatrix && !isTransposed ? width : height; // will be 1 for 1D - uint32_t it = now >> 6; //div 32 + uint32_t it = now >> 5; //div 32 uint16_t q = cols>>2; // a quarter of flames if (!SEGENV.allocateData(cols*rows)) return mode_static(); //allocation failed diff --git a/wled00/json.cpp b/wled00/json.cpp index 4308e55f..4a8ce9fa 100644 --- a/wled00/json.cpp +++ b/wled00/json.cpp @@ -84,7 +84,7 @@ void deserializeSegment(JsonObject elem, byte it, byte presetId) if (stop > start && of > len -1) of = len -1; strip.setSegment(id, start, stop, grp, spc, of, startY, stopY); - byte segbri = 0; + byte segbri = seg.opacity; if (getVal(elem["bri"], &segbri)) { if (segbri > 0) seg.setOpacity(segbri, id); seg.setOption(SEG_OPTION_ON, segbri, id);