From 999045ebd7aaace36b9ee5d518aa96aab0408793 Mon Sep 17 00:00:00 2001 From: Bogdan Pilyugin Date: Thu, 9 Mar 2023 15:24:12 +0200 Subject: [PATCH] fix serial number cuculation --- extlibs/libespfs | 2 +- src/WebGUIAppMain.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extlibs/libespfs b/extlibs/libespfs index 5342a39..03ff681 160000 --- a/extlibs/libespfs +++ b/extlibs/libespfs @@ -1 +1 @@ -Subproject commit 5342a39a179a4dddede680615bf4694755d2a59d +Subproject commit 03ff681a61cb03a43c6f008601a6e6090e9df2bd diff --git a/src/WebGUIAppMain.c b/src/WebGUIAppMain.c index a2087c1..855a39e 100644 --- a/src/WebGUIAppMain.c +++ b/src/WebGUIAppMain.c @@ -241,7 +241,7 @@ static void ResetSysConfig(SYS_CONFIG *Conf) UINT32_VAL d; GetChipId((uint8_t*) d.v); - snprintf(Conf->SN, 11, "%010d", (int)swap(d.Val)); + snprintf(Conf->SN, 11, "%010u", (unsigned int)swap(d.Val)); memcpy(Conf->NetBIOSName, CONFIG_WEBGUIAPP_HOSTNAME, sizeof(CONFIG_WEBGUIAPP_HOSTNAME));