Skip to content

Commit 19832e4

Browse files
Merge pull request #1520 from FarmBot/staging
v15.4.11
2 parents b42e9ab + 76120fe commit 19832e4

17 files changed

+10060
-6555
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
# 15.4.11
4+
5+
* Force push state update upon `read_status`.
6+
* Add Genesis v1.8 firmware.
7+
38
# 15.4.10
49

510
* Prevent unnecessary scheduler exit upon encountering duplicate variables when one is a placeholder.

FEATURE_MIN_VERSIONS.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"farmduino_k14": "6.4.4",
1818
"farmduino_k15": "9.0.0",
1919
"farmduino_k16": "14.2.1",
20+
"farmduino_k18": "15.4.11",
2021
"firmware_restart": "8.0.0",
2122
"flash_firmware": "8.0.0",
2223
"groups": "8.1.0",

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
15.4.10
1+
15.4.11

lib/ext/mqtt/bot_state_handler.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ defmodule FarmbotOS.MQTT.BotStateHandler do
3737
end
3838

3939
def handle_cast(:reload, state) do
40-
{:noreply, broadcast!(state)}
40+
{:noreply, broadcast!(state, true)}
4141
end
4242

4343
def handle_info({BotState, _}, state) do
@@ -49,10 +49,10 @@ defmodule FarmbotOS.MQTT.BotStateHandler do
4949
{:noreply, state}
5050
end
5151

52-
def broadcast!(%{last_broadcast: last} = state) do
52+
def broadcast!(%{last_broadcast: last} = state, force \\ false) do
5353
next = BotState.fetch()
5454

55-
if next != last do
55+
if next != last || force do
5656
json =
5757
next
5858
|> BotStateNG.view()

lib/firmware/flash_utils.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ defmodule FarmbotOS.Firmware.FlashUtils do
1010
def find_hex_file("farmduino_k15"), do: find("farmduino_k15.hex")
1111
def find_hex_file("farmduino_k16"), do: find("farmduino_k16.hex")
1212
def find_hex_file("farmduino_k17"), do: find("farmduino_k17.hex")
13+
def find_hex_file("farmduino_k18"), do: find("farmduino_k18.hex")
1314
def find_hex_file("farmduino"), do: find("farmduino.hex")
1415
def find_hex_file("none"), do: find("eeprom_clear.ino.hex")
1516

lib/firmware/uart_detector.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ defmodule FarmbotOS.Firmware.UARTDetector do
1414
"farmduino_k15" => "ttyACM0",
1515
"farmduino_k16" => "ttyACM0",
1616
"farmduino_k17" => "ttyACM0",
17+
"farmduino_k18" => "ttyACM0",
1718
"farmduino" => "ttyACM0"
1819
}
1920

0 commit comments

Comments
 (0)