mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 23:48:11 +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_")) {
|
||||
return;
|
||||
}
|
||||
// recommended to wait for 2ms after high
|
||||
delay(2);
|
||||
switch (mode) {
|
||||
case NORMAL:
|
||||
this->pin_m0_->digital_write(false);
|
||||
|
@ -386,7 +388,7 @@ bool EbyteLoraComponent::can_send_message_(const char *info) {
|
|||
}
|
||||
}
|
||||
void EbyteLoraComponent::update() {
|
||||
if (this->busy_till_ = 0) {
|
||||
if (this->busy_till_ == 0) {
|
||||
// give it a few seconds before doing this
|
||||
busy_till_ = millis() + 1500;
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue