From 5877cad87e730f0eb768a4c0c8c83fc096d1646c Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Thu, 11 Jan 2024 22:35:52 +0700 Subject: [PATCH] fix nullptr --- 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 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