diff --git a/code/espurna/light.ino b/code/espurna/light.ino index f322f5e1..b748b6f8 100644 --- a/code/espurna/light.ino +++ b/code/espurna/light.ino @@ -1061,7 +1061,7 @@ void lightSetup() { const char * map = getSetting("myMapping", "").c_str(); unsigned char channels = strlen(map); for (unsigned char i=0; iresize(_sensor_report_every); - _magnitude.min_change = getSetting("tmpDelta", magnitude.type, 0).toFloat(); + magnitude.filter->resize(_sensor_report_every); + magnitude.min_change = getSetting("tmpDelta", magnitude.type, 0).toFloat(); } // Save settings