fix nullptr for inputs

This commit is contained in:
Siwat Sirichai 2024-01-11 22:36:16 +07:00
parent 5877cad87e
commit 989107c8e3
1 changed files with 1 additions and 1 deletions

View File

@ -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);