mirror of
https://github.com/wled/WLED.git
synced 2025-04-25 07:17:18 +00:00
Update set.cpp
Compile fix
This commit is contained in:
parent
d1d54ce9c8
commit
b72f3baab7
@ -109,8 +109,8 @@ void handleSettingsSet(AsyncWebServerRequest *request, byte subPage)
|
|||||||
if (btnPin[s]>=0 && pinManager.isPinAllocated(btnPin[s], PinOwner::Button)) {
|
if (btnPin[s]>=0 && pinManager.isPinAllocated(btnPin[s], PinOwner::Button)) {
|
||||||
pinManager.deallocatePin(btnPin[s], PinOwner::Button);
|
pinManager.deallocatePin(btnPin[s], PinOwner::Button);
|
||||||
#ifdef SOC_TOUCH_VERSION_2 // ESP32 S2 and S3 have a function to check touch state, detach interrupt
|
#ifdef SOC_TOUCH_VERSION_2 // ESP32 S2 and S3 have a function to check touch state, detach interrupt
|
||||||
if (digitalPinToTouchChannel(btnPin[i]) >= 0) // if touch capable pin
|
if (digitalPinToTouchChannel(btnPin[s]) >= 0) // if touch capable pin
|
||||||
touchDetachInterrupt(btnPin[i]); // if not assigned previously, this will do nothing
|
touchDetachInterrupt(btnPin[s]); // if not assigned previously, this will do nothing
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user