button.cpp: marked literal constant as "float!
This commit is contained in:
parent
1dbea434a3
commit
169a46c38c
@ -139,7 +139,7 @@ void handleSwitch(uint8_t b)
|
|||||||
void handleAnalog(uint8_t b)
|
void handleAnalog(uint8_t b)
|
||||||
{
|
{
|
||||||
static uint8_t oldRead[WLED_MAX_BUTTONS] = {0};
|
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
|
uint16_t rawReading; // raw value from analogRead, scaled to 12bit
|
||||||
|
|
||||||
#ifdef ESP8266
|
#ifdef ESP8266
|
||||||
|
Loading…
Reference in New Issue
Block a user