[nextion] Optimize component memory usage with bitfield state management (#9373)
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user