[nextion] Optimize component memory usage with bitfield state management (#9373)

This commit is contained in:
Edward Firmo authored and GitHub committed 2025-07-08 09:21:14 +12:00
1 parent 42a1f6922f
commit c4fac1a2ae
6 files changed
+85 -50

No files matched your search

@@ -44,7 +44,7 @@ void NextionBinarySensor::set_state(bool state, bool publish, bool send_to_nexti
return;
if (send_to_nextion) {
if (this->nextion_->is_sleeping() || !this->visible_) {
if (this->nextion_->is_sleeping() || !this->component_flags_.visible) {
this->needs_to_send_update_ = true;
} else {
this->needs_to_send_update_ = false;