Skip to content

Commit 53ed00c

Browse files
committed
Fix Elixir 1.15 warnings
1 parent 16eefd7 commit 53ed00c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/circuits_sim/gpio/gpio_server.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ defmodule CircuitsSim.GPIO.GPIOServer do
109109
{:reply, :ok, %{state | device: new_device, cached_value: value}}
110110

111111
:input ->
112-
Logger.warn("Ignoring write to input GPIO #{inspect(state.pin_spec)}")
112+
Logger.warning("Ignoring write to input GPIO #{inspect(state.pin_spec)}")
113113
{:reply, :ok, state}
114114
end
115115
end
@@ -182,7 +182,7 @@ defmodule CircuitsSim.GPIO.GPIOServer do
182182
defp process_read(%{pull_mode: :pulldown}, :hi_z), do: 0
183183

184184
defp process_read(state, :hi_z) do
185-
Logger.warn(
185+
Logger.warning(
186186
"GPIO #{inspect(state.pin_spec)} is in high impedance state. Set pull mode to reliably read."
187187
)
188188

0 commit comments

Comments
 (0)