mirror of
https://github.com/wled/WLED.git
synced 2025-07-20 09:16:31 +00:00
Update button.cpp
Indentation fix
This commit is contained in:
parent
d3a97f1062
commit
954f26308b
@ -100,13 +100,9 @@ bool isButtonPressed(uint8_t i)
|
|||||||
case BTN_TYPE_TOUCH_SWITCH:
|
case BTN_TYPE_TOUCH_SWITCH:
|
||||||
#if defined(ARDUINO_ARCH_ESP32) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
#if defined(ARDUINO_ARCH_ESP32) && !defined(CONFIG_IDF_TARGET_ESP32C3)
|
||||||
#ifdef SOC_TOUCH_VERSION_2 //ESP32 S2 and S3 provide a function to check touch state (state is updated in interrupt)
|
#ifdef SOC_TOUCH_VERSION_2 //ESP32 S2 and S3 provide a function to check touch state (state is updated in interrupt)
|
||||||
if (touchInterruptGetLastStatus(pin))
|
if (touchInterruptGetLastStatus(pin)) return true;
|
||||||
return true;
|
|
||||||
#else
|
#else
|
||||||
if (digitalPinToTouchChannel(btnPin[i]) >= 0 && touchRead(pin) <= touchThreshold)
|
if (digitalPinToTouchChannel(btnPin[i]) >= 0 && touchRead(pin) <= touchThreshold) return true;
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user