From b65d684684defb8fff8796a901ba43d09d4ef618 Mon Sep 17 00:00:00 2001 From: Frank Hunleth Date: Tue, 6 Aug 2024 14:46:36 -0400 Subject: [PATCH] Reduce retry rate for getting cellular info --- lib/vintage_net_qmi/modem_info.ex | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/vintage_net_qmi/modem_info.ex b/lib/vintage_net_qmi/modem_info.ex index 4611e92..81432ed 100644 --- a/lib/vintage_net_qmi/modem_info.ex +++ b/lib/vintage_net_qmi/modem_info.ex @@ -8,6 +8,8 @@ defmodule VintageNetQMI.ModemInfo do @iccid_file_id 0x2FE2 @main_file_path 0x3F00 + @info_retry_delay 5_000 + use GenServer, restart: :transient require Logger @@ -125,7 +127,7 @@ defmodule VintageNetQMI.ModemInfo do end defp retry(name) do - Process.send_after(self(), name, 1_000) + Process.send_after(self(), name, @info_retry_delay) end @impl GenServer