We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d19270e commit 08c93adCopy full SHA for 08c93ad
supervisor/shared/web_workflow/web_workflow.c
@@ -636,11 +636,11 @@ static void _reply_with_version_json(socketpool_socket_obj_t *socket, _request *
636
_send_chunk(socket, "\", \"board_id\": \"");
637
_send_chunk(socket, CIRCUITPY_BOARD_ID);
638
_send_chunk(socket, "\", \"creator_id\": ");
639
- char encoded_id[8];
640
- snprintf(encoded_id, sizeof(encoded_id), "%d", CIRCUITPY_CREATOR_ID);
+ char encoded_id[11]; // 2 ** 32 is 10 decimal digits plus one for \0
+ snprintf(encoded_id, sizeof(encoded_id), "%u", CIRCUITPY_CREATOR_ID);
641
_send_chunk(socket, encoded_id);
642
_send_chunk(socket, ", \"creation_id\": ");
643
- snprintf(encoded_id, sizeof(encoded_id), "%d", CIRCUITPY_CREATION_ID);
+ snprintf(encoded_id, sizeof(encoded_id), "%u", CIRCUITPY_CREATION_ID);
644
645
_send_chunk(socket, ", \"hostname\": \"");
646
_send_chunk(socket, common_hal_mdns_server_get_hostname(&mdns));
supervisor/supervisor.mk
@@ -161,7 +161,7 @@ endif
161
162
STATIC_RESOURCES = $(wildcard $(TOP)/supervisor/shared/web_workflow/static/*)
163
164
-$(BUILD)/autogen_web_workflow_static.c: ../../tools/gen_web_workflow_static.py $(STATIC_RESOURCES)
+$(BUILD)/autogen_web_workflow_static.c: ../../tools/gen_web_workflow_static.py $(STATIC_RESOURCES) | $(HEADER_BUILD)
165
$(STEPECHO) "GEN $@"
166
$(Q)$(PYTHON) $< \
167
--output_c_file $@ \
0 commit comments