fix nullptr for inputs
This commit is contained in:
parent
5877cad87e
commit
989107c8e3
|
@ -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
|
// If the input card is binded to the display and the current page is the input page
|
||||||
// then update the respective input component
|
// 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;
|
return;
|
||||||
// Update the input state
|
// Update the input state
|
||||||
this->setInputMarker(pin, state);
|
this->setInputMarker(pin, state);
|
||||||
|
|
Loading…
Reference in New Issue