diff options
author | Lars Poeschel <poeschel@lemonage.de> | 2020-09-24 12:38:05 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2020-09-29 09:22:45 -0500 |
commit | 4a098c724a11156fd1c4f66fb5d8eeca6be02775 (patch) | |
tree | 633446a6e1c4f22597063c6c1706281d6cc11ce7 | |
parent | 0153cefeeb94802dd88bd259a68bf384ef69e3ac (diff) | |
download | ofono-4a098c724a11156fd1c4f66fb5d8eeca6be02775.tar.gz |
quectel: Extend power-on timeout
More complicated modems emerge and they need longer start-up times. An
EC21 takes about 13 seconds to boot up. This is slightly longer than the
20 * 500 ms we have at the moment. This extends the retries to 30, so we
have 30 * 500 ms and this does successfully power up an EC21 modem.
-rw-r--r-- | plugins/quectel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/quectel.c b/plugins/quectel.c index c3343008..6456775d 100644 --- a/plugins/quectel.c +++ b/plugins/quectel.c @@ -1086,8 +1086,8 @@ static void init_timeout_cb(struct l_timeout *timeout, void *user_data) DBG("%p", modem); - if (data->init_count++ >= 20) { - ofono_error("failed to init modem after 20 attempts"); + if (data->init_count++ >= 30) { + ofono_error("failed to init modem after 30 attempts"); close_serial(modem); return; } |