diff --git a/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/InternalDisplay.cpp b/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/InternalDisplay.cpp index e1894d1..8f52f5d 100644 --- a/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/InternalDisplay.cpp +++ b/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/InternalDisplay.cpp @@ -81,7 +81,7 @@ void InternalDisplay::handlePwmStateChange(uint8_t pin, bool state, uint16_t val { // If the output card is binded to the display and the current page is the output page // then update the respective output component - if (this->outputCard != nullptr) + if (this->outputCard == nullptr) return; if(this->currentPage == INTERNAL_DISPLAY_OUTPUT_PAGE) { // Update the output state