From 36b213efdec406562ebd8e6f6109ad93e919d634 Mon Sep 17 00:00:00 2001 From: Pablo2048 Date: Sun, 3 Jun 2018 16:38:08 +0200 Subject: [PATCH] ESP Chip ID a Flash Chip ID jsou nyni zobrazovany hexadecimalne --- src/WiFiConfig.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/WiFiConfig.cpp b/src/WiFiConfig.cpp index b706727..9b079dc 100644 --- a/src/WiFiConfig.cpp +++ b/src/WiFiConfig.cpp @@ -303,6 +303,7 @@ void WiFiConfig::_handleReset(void) void WiFiConfig::_handleInfo(void) { String reply; + char buff[32]; reply.reserve(3000); @@ -335,10 +336,12 @@ void WiFiConfig::_handleInfo(void) reply.concat(macaddress); reply.concat(F("ESP Chip ID:")); - reply.concat(ESP.getChipId()); + sprintf_P(buff, PSTR("%06X"), ESP.getChipId()); + reply.concat(buff); reply.concat(F("Flash Chip ID:")); - reply.concat(ESP.getFlashChipId()); + sprintf_P(buff, PSTR("%08X"), ESP.getFlashChipId()); + reply.concat(buff); reply.concat(F("")); server->send(200, TEXTHTML, reply);