Enable setting config securely in firmware/config/secrets.exs

This commit is contained in:
Pim Kunis 2019-07-14 23:54:06 +02:00
parent fe172f018a
commit 8f99154259
7 changed files with 17 additions and 15 deletions

View file

@ -21,12 +21,7 @@ defmodule Morse do
"""
def signal do
case System.get_env("MORSE_MESSAGE") do
nil ->
# Signal for SOS if the env variable wasn't found :)
signal("...---...")
message -> signal(message)
end
signal(Application.fetch_env!(:morse, :morse_message))
end
def signal(symbols) do