Reduce entity memory usage by eliminating field shadowing and bit-packing (#9076)
This commit is contained in:
1 parent
fb12e4e66a
commit
4787e22f61
25 files changed
+260
-87
No files matched your search
@@ -7,7 +7,7 @@ namespace text {
|
||||
static const char *const TAG = "text";
|
||||
|
||||
void Text::publish_state(const std::string &state) {
|
||||
this->has_state_ = true;
|
||||
this->set_has_state(true);
|
||||
this->state = state;
|
||||
if (this->traits.get_mode() == TEXT_MODE_PASSWORD) {
|
||||
ESP_LOGD(TAG, "'%s': Sending state " LOG_SECRET("'%s'"), this->get_name().c_str(), state.c_str());
|
||||
|
||||
Reference in new issue
Block a user