Update ebyte_lora_component.cpp

This commit is contained in:
Daniël Koek 2024-10-16 14:31:45 +01:00
parent 2663b3e794
commit 09c3c13f3d

View file

@ -311,12 +311,12 @@ void EbyteLoraComponent::request_current_config_() {
// can't send a message yet return!
return;
}
if (this->get_mode_() != CONFIGURATION) {
this->set_mode_(NORMAL);
ESP_LOGD(TAG, "Mode not set right");
delay(20);
return;
}
// if (this->get_mode_() != CONFIGURATION) {
// this->set_mode_(NORMAL);
// ESP_LOGD(TAG, "Mode not set right");
// delay(20);
// return;
// }
// program conf command, start at 0 with a size of 8
uint8_t data[3] = {PROGRAM_CONF, 0x00, 0x08};
this->write_array(data, sizeof(data));