Add log for mysterious timeout

This commit is contained in:
Connor Rigby 2017-12-13 16:21:09 -08:00
parent 178b9be15d
commit b4af707c3f

View file

@ -304,6 +304,7 @@ defmodule Farmbot.Firmware do
maybe_cancel_timer(state.timer)
Farmbot.BotState.set_busy(false)
if state.current do
Logger.warn 1, "Got idle while executing a command."
GenStage.reply(state.current.from, {:error, :timeout})
{:informational_settings, %{busy: false, locked: false}, %{state | current: nil, idle: true}}
else