mirror of
https://github.com/esphome/esphome.git
synced 2024-11-24 07:58:09 +01:00
Update ebyte_lora_component.cpp
This commit is contained in:
parent
88478c9225
commit
aefb983fa7
1 changed files with 3 additions and 1 deletions
|
@ -346,6 +346,8 @@ void EbyteLoraComponent::set_mode_(ModeType mode) {
|
||||||
if (!this->can_send_message_("set_mode_")) {
|
if (!this->can_send_message_("set_mode_")) {
|
||||||
return;
|
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);
|
||||||
|
@ -386,7 +388,7 @@ bool EbyteLoraComponent::can_send_message_(const char *info) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void EbyteLoraComponent::update() {
|
void EbyteLoraComponent::update() {
|
||||||
if (this->busy_till_ = 0) {
|
if (this->busy_till_ == 0) {
|
||||||
// give it a few seconds before doing this
|
// give it a few seconds before doing this
|
||||||
busy_till_ = millis() + 1500;
|
busy_till_ = millis() + 1500;
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue