mirror of https://github.com/esphome/esphome.git
Lint
This commit is contained in:
parent
555039a902
commit
fe4271a59b
|
@ -298,7 +298,7 @@ APIError APINoiseFrameHelper::state_action_() {
|
|||
msg.push_back(0x01);
|
||||
|
||||
// node name, terminated by null byte
|
||||
std::string name = App.get_name();
|
||||
const std::string &name = App.get_name();
|
||||
const uint8_t *name_ptr = reinterpret_cast<const uint8_t *>(name.c_str());
|
||||
msg.insert(msg.end(), name_ptr, name_ptr + name.size() + 1);
|
||||
|
||||
|
|
Loading…
Reference in New Issue