move morse to seperate module

This commit is contained in:
Pim Kunis 2019-07-14 15:05:45 +02:00
parent b93d48920a
commit cbec08aae8
11 changed files with 98 additions and 12 deletions

View file

@ -22,7 +22,7 @@ defmodule UiWeb.PageController do
case get_start_time() do
start_time when start_time + 35 <= now ->
System.put_env("MORSE_START_TIME", Integer.to_string(now))
Ui.SignalMorse.signal()
Morse.signal("...---...")
text(conn, "Done.")
_ ->
text(conn, "It is still in progress...")