Group functions

This commit is contained in:
Connor Rigby 2017-12-12 11:56:02 -08:00
parent 91b8fd74d9
commit 6493975419

View file

@ -386,12 +386,6 @@ defmodule Farmbot.Firmware do
{nil, state}
end
def report_calibration_callback(tries, param, value)
def report_calibration_callback(0, _param, _value) do
:ok
end
defp handle_gcode(:noop, state) do
{nil, state}
end
@ -432,6 +426,8 @@ defmodule Farmbot.Firmware do
end
@doc false
def report_calibration_callback(tries, param, value)
def report_calibration_callback(tries, param, val) do
case Farmbot.Firmware.update_param(param, val) do
:ok ->
@ -446,4 +442,8 @@ defmodule Farmbot.Firmware do
report_calibration_callback(tries - 1, param, val)
end
end
def report_calibration_callback(0, _param, _value) do
:ok
end
end