Fix wrong status code displaying.

Uncomment GPIO lines in the signaler.
This commit is contained in:
Pim Kunis 2019-07-25 00:00:13 +02:00
parent 0c989c06d0
commit b6b684af25
2 changed files with 3 additions and 6 deletions

View file

@ -20,10 +20,10 @@ defmodule MorseSignaler do
""" """
def signal(server_pid) do def signal(server_pid) do
# {:ok, gpio} = GPIO.open(relay_pin(), :output) {:ok, gpio} = GPIO.open(relay_pin(), :output)
# GPIO.write(gpio, @off) GPIO.write(gpio, @off)
Process.sleep(@sleep_start) Process.sleep(@sleep_start)
# signal_sentence(gpio, String.graphemes(secret_code())) signal_sentence(gpio, String.graphemes(secret_code()))
GenServer.cast(server_pid, :done) GenServer.cast(server_pid, :done)
:ok :ok

View file

@ -33,9 +33,6 @@
responseP.innerHTML = "Starting..."; responseP.innerHTML = "Starting...";
xhttp.open("GET", "/start", true); xhttp.open("GET", "/start", true);
xhttp.send(); xhttp.send();
setTimeout(function() {
responseP.innerHTML = "Started.";
}, 3000);
} }
function givehint() { function givehint() {