From 169a46c38c194479bbb3fbce5d24788a7ac0049b Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Mon, 20 Jun 2022 21:56:16 +0200 Subject: [PATCH] button.cpp: marked literal constant as "float! --- wled00/button.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/button.cpp b/wled00/button.cpp index 93f753698..a5a4718a6 100644 --- a/wled00/button.cpp +++ b/wled00/button.cpp @@ -139,7 +139,7 @@ void handleSwitch(uint8_t b) void handleAnalog(uint8_t b) { static uint8_t oldRead[WLED_MAX_BUTTONS] = {0}; - static float filteredReading[WLED_MAX_BUTTONS] = {0.0}; + static float filteredReading[WLED_MAX_BUTTONS] = {0.0f}; uint16_t rawReading; // raw value from analogRead, scaled to 12bit #ifdef ESP8266