Update ebyte_lora.cpp

This commit is contained in:
Daniël Koek 2024-04-24 16:42:43 +01:00
parent fdf50b0c03
commit 17887c6191

View file

@ -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);
}
}