From ed374684a6a4c655627da873df5e56e6f6509e2a Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Mon, 20 Jun 2022 22:00:23 +0200 Subject: [PATCH] Update button.cpp overlooked one --- wled00/button.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/button.cpp b/wled00/button.cpp index a5a4718a6..937dddf0f 100644 --- a/wled00/button.cpp +++ b/wled00/button.cpp @@ -133,7 +133,7 @@ void handleSwitch(uint8_t b) #define ANALOG_BTN_READ_CYCLE 250 // min time between two analog reading cycles #define STRIP_WAIT_TIME 6 // max wait time in case of strip.isUpdating() -#define POT_SMOOTHING 0.25 // smoothing factor for raw potentiometer readings +#define POT_SMOOTHING 0.25f // smoothing factor for raw potentiometer readings #define POT_SENSITIVITY 4 // changes below this amount are noise (POT scratching, or ADC noise) void handleAnalog(uint8_t b)