Skip to content

Commit

Permalink
Reduce retry rate for getting cellular info
Browse files Browse the repository at this point in the history
  • Loading branch information
fhunleth committed Aug 6, 2024
1 parent 214ddfe commit b65d684
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/vintage_net_qmi/modem_info.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b65d684

Please sign in to comment.