From 536c0058bb1fc43f3a884c1f1467c8b8b5b3d6d1 Mon Sep 17 00:00:00 2001 From: Connor Rigby Date: Tue, 2 Jan 2018 14:48:46 -0800 Subject: [PATCH] Cleanup compiler warnings --- lib/farmbot/firmware/firmware.ex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/farmbot/firmware/firmware.ex b/lib/farmbot/firmware/firmware.ex index 146a27e1..a0081ef0 100644 --- a/lib/farmbot/firmware/firmware.ex +++ b/lib/farmbot/firmware/firmware.ex @@ -192,7 +192,7 @@ defmodule Farmbot.Firmware do end end - defp do_begin_cmd(%Current{fun: fun, args: args, from: from} = current, state, dispatch) do + defp do_begin_cmd(%Current{fun: fun, args: args, from: _from} = current, state, dispatch) do # Logger.busy 3, "FW Starting: #{fun}: #{inspect from}" case apply(state.handler_mod, fun, [state.handler | args]) do :ok -> @@ -205,7 +205,7 @@ defmodule Farmbot.Firmware do end end - defp do_queue_cmd(%Current{fun: fun, args: _args, from: from} = current, state) do + defp do_queue_cmd(%Current{fun: _fun, args: _args, from: _from} = current, state) do # Logger.busy 3, "FW Queuing: #{fun}: #{inspect from}" new_q = :queue.in(current, state.queue) {:noreply, [], %{state | queue: new_q}} @@ -489,7 +489,7 @@ defmodule Farmbot.Firmware do defp do_reply(state, reply) do case state.current do - %Current{fun: fun, from: from} -> + %Current{fun: _fun, from: from} -> # Logger.success 3, "FW Replying: #{fun}: #{inspect from}" :ok = GenServer.reply from, reply nil ->