Skip to content
Permalink
Browse files

Change home on boot order to z,y,x

  • Loading branch information...
ConnorRigby committed Jul 25, 2019
1 parent 4fb242b commit 89835f06ce36b2af3bf43dc2dbb383ec6dcffe94
Showing with 4 additions and 4 deletions.
  1. +4 −4 farmbot_firmware/lib/farmbot_firmware.ex
@@ -487,8 +487,8 @@ defmodule FarmbotFirmware do
]

to_process =
if loaded_params[:movement_home_at_boot_x] == 1,
do: to_process ++ [{:command_movement_find_home, [:x]}],
if loaded_params[:movement_home_at_boot_z] == 1,
do: to_process ++ [{:command_movement_find_home, [:z]}],
else: to_process

to_process =
@@ -497,8 +497,8 @@ defmodule FarmbotFirmware do
else: to_process

to_process =
if loaded_params[:movement_home_at_boot_z] == 1,
do: to_process ++ [{:command_movement_find_home, [:z]}],
if loaded_params[:movement_home_at_boot_x] == 1,
do: to_process ++ [{:command_movement_find_home, [:x]}],
else: to_process

{:noreply, goto(%{state | tag: tag, configuration_queue: to_process}, :configuration), 0}

0 comments on commit 89835f0

Please sign in to comment.
You can’t perform that action at this time.