diff --git a/firmware/lib/firmware/application.ex b/firmware/lib/firmware/application.ex index 79e5c24..ed02252 100644 --- a/firmware/lib/firmware/application.ex +++ b/firmware/lib/firmware/application.ex @@ -22,7 +22,7 @@ defmodule Firmware.Application do # List all child processes to be supervised def children(:host) do {:ok, _} = Node.start(:"host@0.0.0.0") - Node.set_cookie(:testcookie) + Node.set_cookie(:tastycookie) true = Node.connect(:"esrom@esrom.lan") [] end diff --git a/firmware/mix.exs b/firmware/mix.exs index b8652d5..414651e 100644 --- a/firmware/mix.exs +++ b/firmware/mix.exs @@ -63,7 +63,7 @@ defmodule Firmware.MixProject do def release do [ overwrite: true, - cookie: "testcookie", + cookie: "tastycookie", include_erts: &Nerves.Release.erts/0, steps: [&Nerves.Release.init/1, :assemble] ] diff --git a/morse/lib/morse/worker.ex b/morse/lib/morse/worker.ex index ff9c520..1f62d95 100644 --- a/morse/lib/morse/worker.ex +++ b/morse/lib/morse/worker.ex @@ -67,11 +67,9 @@ defmodule Morse.Worker do end _ -> - alias Circuits.GPIO - def toggle_lamp(state) do - {:ok, gpio} = GPIO.open(relay_pin(), :output) - GPIO.write(gpio, state) + {:ok, gpio} = Circuits.GPIO.open(relay_pin(), :output) + Circuits.GPIO.write(gpio, state) end defp relay_pin() do