From 963b4075b86e61118e22e0956a4157ab17f9b356 Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Sun, 30 Nov 2025 01:09:51 +0100 Subject: [PATCH] chip revision style: v. --- wled00/json.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wled00/json.cpp b/wled00/json.cpp index 599a0a4a..a27c147f 100644 --- a/wled00/json.cpp +++ b/wled00/json.cpp @@ -1133,12 +1133,12 @@ void serializeInfo(JsonObject root) root[F("e32code")] = (int)getRestartReason(); root[F("e32text")] = restartCode2Info(getRestartReason()); - static char msgbuf[32]; + static char msgbuf[42]; #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 4, 3) // use the full revision if we can esp_chip_info_t chip_info; esp_chip_info(&chip_info); - snprintf(msgbuf, sizeof(msgbuf)-1, "%s rev%u.%u", + snprintf(msgbuf, sizeof(msgbuf)-1, "%s v%u.%u", ESP.getChipModel(), unsigned(chip_info.full_revision / 100), // full revision is in (major * 100 + minor) format unsigned(chip_info.full_revision % 100));