mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 17:27:59 +01:00
fix unreachable wdt
This commit is contained in:
parent
a8e43335ae
commit
492ea38d92
1 changed files with 3 additions and 1 deletions
|
@ -498,9 +498,11 @@ bool ModemComponent::get_imei(std::string &result) {
|
|||
bool ModemComponent::modem_ready() {
|
||||
// check if the modem is ready to answer AT commands
|
||||
std::string imei;
|
||||
bool status;
|
||||
set_wdt(60);
|
||||
return this->get_imei(imei);
|
||||
status = this->get_imei(imei);
|
||||
set_wdt(CONFIG_TASK_WDT_TIMEOUT_S);
|
||||
return status;
|
||||
}
|
||||
|
||||
void ModemComponent::add_on_state_callback(std::function<void(ModemComponentState)> &&callback) {
|
||||
|
|
Loading…
Reference in a new issue