Skip to content

Commit 08c93ad

Browse files
committed
Fix creator ID and build order
1 parent d19270e commit 08c93ad

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

supervisor/shared/web_workflow/web_workflow.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -636,11 +636,11 @@ static void _reply_with_version_json(socketpool_socket_obj_t *socket, _request *
636636
_send_chunk(socket, "\", \"board_id\": \"");
637637
_send_chunk(socket, CIRCUITPY_BOARD_ID);
638638
_send_chunk(socket, "\", \"creator_id\": ");
639-
char encoded_id[8];
640-
snprintf(encoded_id, sizeof(encoded_id), "%d", CIRCUITPY_CREATOR_ID);
639+
char encoded_id[11]; // 2 ** 32 is 10 decimal digits plus one for \0
640+
snprintf(encoded_id, sizeof(encoded_id), "%u", CIRCUITPY_CREATOR_ID);
641641
_send_chunk(socket, encoded_id);
642642
_send_chunk(socket, ", \"creation_id\": ");
643-
snprintf(encoded_id, sizeof(encoded_id), "%d", CIRCUITPY_CREATION_ID);
643+
snprintf(encoded_id, sizeof(encoded_id), "%u", CIRCUITPY_CREATION_ID);
644644
_send_chunk(socket, encoded_id);
645645
_send_chunk(socket, ", \"hostname\": \"");
646646
_send_chunk(socket, common_hal_mdns_server_get_hostname(&mdns));

supervisor/supervisor.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ endif
161161

162162
STATIC_RESOURCES = $(wildcard $(TOP)/supervisor/shared/web_workflow/static/*)
163163

164-
$(BUILD)/autogen_web_workflow_static.c: ../../tools/gen_web_workflow_static.py $(STATIC_RESOURCES)
164+
$(BUILD)/autogen_web_workflow_static.c: ../../tools/gen_web_workflow_static.py $(STATIC_RESOURCES) | $(HEADER_BUILD)
165165
$(STEPECHO) "GEN $@"
166166
$(Q)$(PYTHON) $< \
167167
--output_c_file $@ \

0 commit comments

Comments
 (0)