mirror of
https://github.com/esphome/esphome.git
synced 2025-03-14 04:25:15 +01:00
Update ebyte_lora_component.cpp
This commit is contained in:
parent
28b9bbb6f1
commit
a1d2578c3e
1 changed files with 5 additions and 0 deletions
|
@ -297,11 +297,16 @@ void EbyteLoraComponent::setup() {
|
|||
ESP_LOGD(TAG, "Setup success");
|
||||
}
|
||||
void EbyteLoraComponent::request_current_config_() {
|
||||
if (this->can_send_message_("requesting current config")) {
|
||||
delay(20);
|
||||
return;
|
||||
}
|
||||
if (this->get_mode_() != CONFIGURATION) {
|
||||
ESP_LOGD(TAG, "Mode not set right, setting it to wat we got");
|
||||
this->set_mode_(this->get_mode_());
|
||||
return;
|
||||
}
|
||||
|
||||
uint8_t data[3] = {PROGRAM_CONF, 0x00, 0x08};
|
||||
this->write_array(data, sizeof(data));
|
||||
ESP_LOGD(TAG, "Config info requested");
|
||||
|
|
Loading…
Add table
Reference in a new issue