fix nullptr

This commit is contained in:
Siwat Sirichai 2024-01-11 22:35:52 +07:00
parent 23af3d5aed
commit 5877cad87e
1 changed files with 1 additions and 1 deletions

View File

@ -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 // If the output card is binded to the display and the current page is the output page
// then update the respective output component // then update the respective output component
if (this->outputCard != nullptr) if (this->outputCard == nullptr)
return; return;
if(this->currentPage == INTERNAL_DISPLAY_OUTPUT_PAGE) { if(this->currentPage == INTERNAL_DISPLAY_OUTPUT_PAGE) {
// Update the output state // Update the output state