From 989107c8e381852c34d3795a9ba261d739640c8f Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Thu, 11 Jan 2024 22:36:16 +0700 Subject: [PATCH] fix nullptr for inputs --- ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/InternalDisplay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/InternalDisplay.cpp b/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/InternalDisplay.cpp index 8f52f5d..bd8615e 100644 --- a/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/InternalDisplay.cpp +++ b/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/InternalDisplay.cpp @@ -64,7 +64,7 @@ void InternalDisplay::handleInputStateChange(uint8_t pin, bool state) { // If the input card is binded to the display and the current page is the input page // then update the respective input component - if (this->inputCard != nullptr || this->currentPage != INTERNAL_DISPLAY_INPUT_PAGE) + if (this->inputCard == nullptr || this->currentPage != INTERNAL_DISPLAY_INPUT_PAGE) return; // Update the input state this->setInputMarker(pin, state);