button.cpp: marked literal constant as "float!

pull/2693/head
Frank 2022-06-20 21:56:16 +02:00
rodzic 1dbea434a3
commit 169a46c38c
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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