From c242b85fa830c1245b53736ecd7763cd47456b3c Mon Sep 17 00:00:00 2001 From: Stefan de Bruijn Date: Sat, 7 Nov 2020 20:43:43 +0100 Subject: [PATCH] Added ISR fix --- Grbl_Esp32/src/Pins/GPIOPinDetail.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Grbl_Esp32/src/Pins/GPIOPinDetail.cpp b/Grbl_Esp32/src/Pins/GPIOPinDetail.cpp index 667afbd5..62341602 100644 --- a/Grbl_Esp32/src/Pins/GPIOPinDetail.cpp +++ b/Grbl_Esp32/src/Pins/GPIOPinDetail.cpp @@ -142,6 +142,10 @@ namespace Pins { pinModeValue |= OUTPUT; } + if (value.has(PinAttributes::ISR)) { + _attributes = _attributes | PinAttributes::ISR; + } + // PU/PD should be specified by the user. Code has nothing to do with it. Well except for this little // detail called external libraries of course... if (_attributes.has(PinAttributes::PullUp) || value.has(PinAttributes::PullUp)) {