farmbot_os/farmbot_core/lib/peripheral/supervisor.ex

15 lines
303 B
Elixir

defmodule Farmbot.Peripheral.Supervisor do
use Supervisor
def start_link(args) do
Supervisor.start_link(__MODULE__, args, [name: __MODULE__])
end
def init([]) do
children = [
{Farmbot.Peripheral.Worker, []}
]
Supervisor.init(children, [strategy: :one_for_one])
end
end