Update grammer
This commit is contained in:
parent
185e526709
commit
178b9be15d
|
@ -8,7 +8,7 @@ defmodule Farmbot.CeleryScript.AST.Node.FactoryReset do
|
||||||
env = mutate_env(env)
|
env = mutate_env(env)
|
||||||
Farmbot.BotState.set_sync_status(:maintenance)
|
Farmbot.BotState.set_sync_status(:maintenance)
|
||||||
Farmbot.BotState.force_state_push()
|
Farmbot.BotState.force_state_push()
|
||||||
Logger.warn 1, "Going down for factory reset Farmbot OS!"
|
Logger.warn 1, "Farmbot OS going down for factory reset!"
|
||||||
Farmbot.System.factory_reset "CeleryScript request."
|
Farmbot.System.factory_reset "CeleryScript request."
|
||||||
{:ok, env}
|
{:ok, env}
|
||||||
end
|
end
|
||||||
|
@ -16,7 +16,7 @@ defmodule Farmbot.CeleryScript.AST.Node.FactoryReset do
|
||||||
def execute(%{package: :arduino_firmware}, _, env) do
|
def execute(%{package: :arduino_firmware}, _, env) do
|
||||||
env = mutate_env(env)
|
env = mutate_env(env)
|
||||||
Farmbot.BotState.set_sync_status(:maintenance)
|
Farmbot.BotState.set_sync_status(:maintenance)
|
||||||
Logger.warn 1, "Going down for factory reset Arduino Firmware!"
|
Logger.warn 1, "Arduino Firmware going down for factory reset!"
|
||||||
params = Farmbot.System.ConfigStorage.get_config_as_map["hardware_params"]
|
params = Farmbot.System.ConfigStorage.get_config_as_map["hardware_params"]
|
||||||
for {param, _val} <- params do
|
for {param, _val} <- params do
|
||||||
Farmbot.Firmware.update_param(:"#{param}", -1)
|
Farmbot.Firmware.update_param(:"#{param}", -1)
|
||||||
|
|
Loading…
Reference in a new issue