update changelog
parent
17c0754063
commit
88ef779160
|
@ -77,3 +77,5 @@
|
|||
* add a progress bar to http client for downloads.
|
||||
* Bundle new Arduino Firmware.
|
||||
* Rewrite Farmware Handler again, to use HTTP/REST this time instead of STDIN/STDOUT.
|
||||
* Add location_data to bot state. This includes encoder position.
|
||||
* Add `jobs` field to bot state.
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
To enable us to help you with the issue, please provide as much information as possible about your device and the problem. At a minimum, provide:
|
||||
### Step 1: Are you in the right place?
|
||||
This repository is for Farmbot OS problems.
|
||||
|
||||
### Step 2: Describe your environment
|
||||
|
||||
* Device: _____
|
||||
* Farmbot OS version: _____
|
||||
* Arduino Firmware version: _____
|
||||
|
||||
### Step 3: Describe the problem:
|
||||
|
||||
|
||||
#### Steps to reproduce:
|
||||
|
||||
1. _____
|
||||
2. _____
|
||||
3. _____
|
||||
|
||||
#### Observed Results:
|
||||
|
||||
* What happened? This could be a description, log output, etc.
|
||||
|
||||
#### Expected Results:
|
||||
|
||||
* What did you expect to happen?
|
|
@ -1 +0,0 @@
|
|||
# What's new?
|
|
@ -59,7 +59,7 @@ defmodule Farmbot.BotState.Monitor do
|
|||
end
|
||||
|
||||
def handle_call({:set_job_progress, name, percent}, _from, state) do
|
||||
obj = state.jobs[name] || %{status: :ok, percent: percent}
|
||||
obj = state.jobs[name] || %{status: :working, percent: percent}
|
||||
jobs = Map.put(state.jobs, name, %{obj | status: build_status(percent), percent: percent})
|
||||
new_state = %{state | jobs: jobs}
|
||||
GenStage.async_notify(new_state.context.monitor, new_state)
|
||||
|
@ -67,7 +67,7 @@ defmodule Farmbot.BotState.Monitor do
|
|||
end
|
||||
|
||||
defp build_status(100), do: :complete
|
||||
defp build_status(_), do: :ok
|
||||
defp build_status(_), do: :working
|
||||
|
||||
@spec dispatch(State.t) :: {:noreply, [], State.t }
|
||||
defp dispatch(%State{} = new_state) do
|
||||
|
|
Loading…
Reference in New Issue