mirror of
https://github.com/esphome/esphome.git
synced 2024-11-24 16:08:10 +01:00
Update ebyte_lora.cpp
This commit is contained in:
parent
fdf50b0c03
commit
17887c6191
1 changed files with 1 additions and 1 deletions
|
@ -362,7 +362,7 @@ void EbyteLoraComponent::loop() {
|
|||
if (data[0] == PROGRAM_CONF) {
|
||||
ESP_LOGD(TAG, "GOT PROGRAM_CONF");
|
||||
memset(&this->config, 0, sizeof(RegisterConfig));
|
||||
memcpy(&this->config, &data, sizeof(RegisterConfig));
|
||||
memcpy(&this->config, &data, data.size());
|
||||
this->set_mode_(NORMAL);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue