[core] Reduce flash size by combining set_name() and set_object_id() calls (#11941)

This commit is contained in:
J. Nick Koston
2025-11-25 12:15:45 -06:00
committed by GitHub
parent a571033b43
commit cf8c205644
8 changed files with 36 additions and 13 deletions
+6
View File
@@ -74,6 +74,12 @@ void EntityBase::set_object_id(const char *object_id) {
this->calc_object_id_();
}
void EntityBase::set_name_and_object_id(const char *name, const char *object_id) {
this->set_name(name);
this->object_id_c_str_ = object_id;
this->calc_object_id_();
}
// Calculate Object ID Hash from Entity Name
void EntityBase::calc_object_id_() {
this->object_id_hash_ =