mirror of
https://github.com/esphome/esphome.git
synced 2024-11-25 00:18:11 +01:00
Update ebyte_lora.cpp
This commit is contained in:
parent
6fed4d268f
commit
3ce9c5d0b5
1 changed files with 3 additions and 1 deletions
|
@ -7,7 +7,9 @@ static const uint8_t PROGRAM_CONF = 0xC1;
|
||||||
void EbyteLoraComponent::update() {
|
void EbyteLoraComponent::update() {
|
||||||
if (get_mode_() != NORMAL) {
|
if (get_mode_() != NORMAL) {
|
||||||
if (this->config.command == 0) {
|
if (this->config.command == 0) {
|
||||||
ESP_LOGD(TAG, "Config not set yet!");
|
ESP_LOGD(TAG, "Config not set yet!, gonna request it now!");
|
||||||
|
get_current_config_();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
ESP_LOGD(TAG, "Mode was not set right");
|
ESP_LOGD(TAG, "Mode was not set right");
|
||||||
set_mode_(NORMAL);
|
set_mode_(NORMAL);
|
||||||
|
|
Loading…
Reference in a new issue