kopia lustrzana https://github.com/Aircoookie/WLED
button.cpp: marked literal constant as "float!
rodzic
1dbea434a3
commit
169a46c38c
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue