Skip to content

Commit 539ee66

Browse files
BrentIOclaude
andcommitted
Use raw partition name in OTA title without capitalization
Partition names app and ui are lowercase; title now matches exactly what the OLED displays. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c1dc57f commit 539ee66

2 files changed

Lines changed: 8 additions & 12 deletions

File tree

Controller/Controller.ino

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3597,9 +3597,7 @@ void setup_OtaFirmware(){
35973597
mqttDoc["in_progress"] = true;
35983598
mqttDoc["update_percentage"] = pct;
35993599
char title[32];
3600-
snprintf(title, sizeof(title), "Updating %c%s",
3601-
toupper((unsigned char)_otaCurrentPartition[0]),
3602-
_otaCurrentPartition + 1);
3600+
snprintf(title, sizeof(title), "Updating %s", _otaCurrentPartition);
36033601
mqttDoc["title"] = title;
36043602
char topic[MQTT_TOPIC_UPDATE_STATE_PATTERN_LENGTH+1];
36053603
snprintf(topic, sizeof(topic), MQTT_TOPIC_UPDATE_STATE_PATTERN, deviceIdentity.data.uuid);
@@ -3727,9 +3725,7 @@ void otaFirmware_checkPending(){
37273725
mqttDoc["in_progress"] = true;
37283726
mqttDoc["update_percentage"] = pct;
37293727
char title[32];
3730-
snprintf(title, sizeof(title), "Updating %c%s",
3731-
toupper((unsigned char)_otaCurrentPartition[0]),
3732-
_otaCurrentPartition + 1);
3728+
snprintf(title, sizeof(title), "Updating %s", _otaCurrentPartition);
37333729
mqttDoc["title"] = title;
37343730
char topic[MQTT_TOPIC_UPDATE_STATE_PATTERN_LENGTH+1];
37353731
snprintf(topic, sizeof(topic), MQTT_TOPIC_UPDATE_STATE_PATTERN, deviceIdentity.data.uuid);

Controller/asyncapi.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,7 +1157,7 @@ components:
11571157
installed_version: "2026.04.01"
11581158
latest_version: "2026.06.21"
11591159
release_url: "https://github.com/BrentIO/FireFly-Controller/releases/tag/2026.06.21"
1160-
title: "Updating UI"
1160+
title: "Updating ui"
11611161
in_progress: true
11621162
update_percentage: 23
11631163
- name: flashing-firmware
@@ -1166,15 +1166,15 @@ components:
11661166
installed_version: "2026.04.01"
11671167
latest_version: "2026.06.21"
11681168
release_url: "https://github.com/BrentIO/FireFly-Controller/releases/tag/2026.06.21"
1169-
title: "Updating App"
1169+
title: "Updating app"
11701170
in_progress: true
11711171
update_percentage: 67
11721172
- name: forced-in-progress
11731173
summary: Forced OTA install — same installed and target version
11741174
payload:
11751175
installed_version: "2026.06.21"
11761176
latest_version: "2026.06.21 (Forced)"
1177-
title: "Updating App"
1177+
title: "Updating app"
11781178
in_progress: true
11791179
update_percentage: 42
11801180
- name: failed
@@ -1420,11 +1420,11 @@ components:
14201420
type: string
14211421
description: >
14221422
Label indicating which partition is currently being flashed,
1423-
e.g. "Updating App" or "Updating UI". Present only when
1423+
e.g. "Updating app" or "Updating ui". Present only when
14241424
in_progress is true.
14251425
examples:
1426-
- "Updating App"
1427-
- "Updating UI"
1426+
- "Updating app"
1427+
- "Updating ui"
14281428
in_progress:
14291429
type: boolean
14301430
description: Whether the OTA update is still in progress. False indicates failure or completion.

0 commit comments

Comments
 (0)