1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 22:24:26 +00:00

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

This commit is contained in:
Edward Firmo
2025-07-07 23:21:14 +02:00
committed by GitHub
parent 42a1f6922f
commit c4fac1a2ae
6 changed files with 85 additions and 50 deletions

View File

@@ -26,7 +26,7 @@ void NextionTextSensor::set_state(const std::string &state, bool publish, bool s
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->nextion_->add_no_result_to_queue_with_set(this, state);