mirror of
https://github.com/esphome/esphome.git
synced 2024-12-26 23:41:45 +01:00
no need to do that
This commit is contained in:
parent
dc6bdedec5
commit
49e4bdd9bf
1 changed files with 0 additions and 16 deletions
|
@ -34,23 +34,7 @@ void Lora::setup() {
|
|||
this->pin_aux_->setup();
|
||||
this->pin_m0_->setup();
|
||||
this->pin_m1_->setup();
|
||||
if (this->pin_aux_ != nullptr) {
|
||||
this->pin_aux_->pin_mode(gpio::FLAG_INPUT);
|
||||
ESP_LOGD(TAG, "Init AUX pin!");
|
||||
}
|
||||
if (this->pin_m0_ != nullptr) {
|
||||
this->pin_m0_->pin_mode(gpio::FLAG_OUTPUT);
|
||||
ESP_LOGD(TAG, "Init M0 pin!");
|
||||
this->pin_m0_->digital_write(false);
|
||||
}
|
||||
if (this->pin_m1_ != nullptr) {
|
||||
this->pin_m1_->pin_mode(gpio::FLAG_OUTPUT);
|
||||
ESP_LOGD(TAG, "Init M1 pin!");
|
||||
this->pin_m1_->digital_write(false);
|
||||
}
|
||||
|
||||
set_mode_(MODE_0_NORMAL);
|
||||
|
||||
ESP_LOGD(TAG, "Setup success");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue