Write F22 P2 V0 on every firmware init.

pull/667/head
Connor Rigby 2018-09-14 11:40:28 -07:00 committed by Connor Rigby
parent f3d9094621
commit 3b5030a836
1 changed files with 1 additions and 0 deletions

View File

@ -205,6 +205,7 @@ defmodule Farmbot.Firmware.UartHandler do
{:nerves_uart, _, {_, {:debug_message, msg}}} ->
if String.contains?(msg, "STARTUP") do
Logger.success 3, "Got #{msg}. UART is up."
UART.write(nerves, "F22 P2 V0")
{:ok, nerves}
else
Logger.debug 3, "Got arduino debug while booting up: #{msg}"