mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 17:27:59 +01:00
Update ebyte_lora_component.cpp
This commit is contained in:
parent
05c76d1134
commit
f81a0837e5
1 changed files with 3 additions and 2 deletions
|
@ -344,8 +344,9 @@ void EbyteLoraComponent::set_mode_(ModeType mode) {
|
|||
ESP_LOGD(TAG, "Mode is already correct");
|
||||
return;
|
||||
}
|
||||
// no need to do anything if the mode is correct
|
||||
if (!this->can_send_message_()) {
|
||||
// when the system starts, aux will stay low until you set the first mode
|
||||
// so make sure mode init isn't set AND we can't sent because aux is low
|
||||
if (this->config_mode_ != MODE_INIT && !this->can_send_message_()) {
|
||||
ESP_LOGD(TAG, "Device busy lets wait");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue