defmodule FarmbotOS.AlertHelpers do
  def firmware_missing(package) when package in ~w(arduino farmduino farmduino_k14 express_k10) do
    %{
      kind: :rpc_request,
      args: %{label: "findme"},
      body: [%{kind: :flash_firmware, args: %{package: "arduino"}}]
    }
    |> FarmbotCeleryScript.AST.decode()
    |> FarmbotCeleryScript.Scheduler.schedule()
  end
end

defmodule FarmbotOS.AlertHelpers do
  def firmware_missing(package) when package in ~w(arduino farmduino farmduino_k14 express_k10) do
    %{
      kind: :rpc_request,
      args: %{label: "findme"},
      body: [%{kind: :flash_firmware, args: %{package: package}}]
    }
    |> FarmbotCeleryScript.AST.decode()
    |> FarmbotCeleryScript.Scheduler.schedule()
  end
end

Fix firmware missing alert_helper not using package name
Fix firmware missing alert_helper not using package name

FarmBot/farmbot_os,FarmBot/farmbot_os,FarmBot/farmbot_os,FarmBot/farmbot_os