mirror of
https://github.com/esphome/esphome.git
synced 2025-03-14 20:45:17 +01:00
Update ebyte_lora_component.cpp
This commit is contained in:
parent
d4641af57d
commit
846dea459e
1 changed files with 0 additions and 11 deletions
|
@ -335,17 +335,6 @@ void EbyteLoraComponent::set_mode_(ModeType mode) {
|
||||||
ESP_LOGD(TAG, "The M0 and M1 pins is not set, this mean that you are connect directly the pins as you need!");
|
ESP_LOGD(TAG, "The M0 and M1 pins is not set, this mean that you are connect directly the pins as you need!");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// no need to do anything if the mode is correct
|
|
||||||
if (this->get_mode_() == mode) {
|
|
||||||
ESP_LOGD(TAG, "Mode is already correct");
|
|
||||||
this->current_mode_ = mode;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (!this->can_send_message_("set_mode_")) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
// recommended to wait for 2ms after high
|
|
||||||
delay(2);
|
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
case NORMAL:
|
case NORMAL:
|
||||||
this->pin_m0_->digital_write(false);
|
this->pin_m0_->digital_write(false);
|
||||||
|
|
Loading…
Add table
Reference in a new issue