From 448d30b9a6cc347f805ec75967ffd40974edaffa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Sat, 18 Aug 2018 02:09:21 +0200 Subject: [PATCH] Fix errors --- code/espurna/light.ino | 2 +- code/espurna/sensor.ino | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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