Skip to content

Commit

Permalink
Merge pull request #1209 from FarmBot/10.1.0
Browse files Browse the repository at this point in the history
v10.1.0
  • Loading branch information
RickCarlino authored Jun 3, 2020
2 parents cc9a72e + d28ca3a commit 07d6624
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# 10.1.0

* Internal upgrades to underlying OS
* Bug fix for DIY users on third party RAMPS boards.
* Genesis v1.5 and Express v1.0 firmware updates.
* Bug fix to prevent firmware reset issues when MCU becomes unresponsive

# 10.0.1

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.1.0-rc25
10.1.0
8 changes: 7 additions & 1 deletion farmbot_firmware/lib/farmbot_firmware.ex
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,13 @@ defmodule FarmbotFirmware do
the `:transport_boot` state.
"""
def close_transport(server \\ __MODULE__) do
_ = command(server, {nil, {:command_emergency_lock, []}})
# Make a best effort to E-lock before swapping.
# Don't crash if e-stop fails.
spawn(fn ->
command(server, {nil, {:command_emergency_lock, []}})
end)

Process.sleep(1000)
GenServer.call(server, :close_transport)
end

Expand Down

0 comments on commit 07d6624

Please # to comment.