Skip to content

Commit

Permalink
Update cfg.cpp
Browse files Browse the repository at this point in the history
Indentation fix
  • Loading branch information
blazoncek authored Apr 7, 2024
1 parent 954f263 commit d1d54ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wled00/cfg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,10 @@ bool deserializeConfig(JsonObject doc, bool fromFS) {
}
//if touch pin, enable the touch interrupt on ESP32 S2 & S3
#ifdef SOC_TOUCH_VERSION_2 // ESP32 S2 and S3 have a fucntion to check touch state but need to attach an interrupt to do so
else if ((buttonType[s] == BTN_TYPE_TOUCH || buttonType[s] == BTN_TYPE_TOUCH_SWITCH))
{
touchAttachInterrupt(btnPin[s], touchButtonISR, 256 + (touchThreshold << 4)); // threshold on Touch V2 is much higher (1500 is a value given by Espressif example, I measured changes of over 5000)
}
if ((buttonType[s] == BTN_TYPE_TOUCH || buttonType[s] == BTN_TYPE_TOUCH_SWITCH))
{
touchAttachInterrupt(btnPin[s], touchButtonISR, 256 + (touchThreshold << 4)); // threshold on Touch V2 is much higher (1500 is a value given by Espressif example, I measured changes of over 5000)
}
#endif
else
#endif
Expand Down

0 comments on commit d1d54ce

Please sign in to comment.