From 26aebf7da929f79a517fea9c9cb7990a1a573965 Mon Sep 17 00:00:00 2001 From: ohAnd <15704728+ohAnd@users.noreply.github.com> Date: Thu, 10 Oct 2024 20:21:07 +0200 Subject: [PATCH 1/4] close #50 "OLED - more precision for total yield" + also for TFT display + extend web update UI with used arch type --- include/base/platformData.h | 11 +++++++++++ include/version.h | 6 +++--- include/version.json | 8 ++++---- include/web/index_html.h | 3 +++ readme.md | 1 + src/base/webserver.cpp | 1 + src/display.cpp | 15 ++++++++++----- src/displayTFT.cpp | 11 +++++++---- 8 files changed, 40 insertions(+), 16 deletions(-) diff --git a/include/base/platformData.h b/include/base/platformData.h index 480b6f4..11dd38f 100644 --- a/include/base/platformData.h +++ b/include/base/platformData.h @@ -16,6 +16,17 @@ struct baseDataStruct boolean esp32 = false; String espUniqueName = String(AP_NAME_START) + "_" + chipID; + #if defined(ESP8266) + String chipType = "ESP8266"; + #warning "setting chipType for ESP8266" + #elif CONFIG_IDF_TARGET_ESP32 + String chipType = "ESP32"; + #warning "setting chipType for ESP32" + #elif CONFIG_IDF_TARGET_ESP32S2 + String chipType = "ESP32 S2 (LOLIN S2 Mini)"; + #warning "setting chipType for ESP32S2" + #endif + const char *fwVersion = VERSION; const char *fwBuildDate = BUILDTIME; diff --git a/include/version.h b/include/version.h index e14f627..490101a 100644 --- a/include/version.h +++ b/include/version.h @@ -1,3 +1,3 @@ -#define VERSION "2.0.150_localDev" -#define BUILDTIME "09.10.2024 - 09:02:52" -#define BUILDTIMESTAMP "1728457372" \ No newline at end of file +#define VERSION "2.0.171_localDev" +#define BUILDTIME "10.10.2024 - 20:15:07" +#define BUILDTIMESTAMP "1728584107" \ No newline at end of file diff --git a/include/version.json b/include/version.json index 6e71557..5915184 100644 --- a/include/version.json +++ b/include/version.json @@ -1,6 +1,6 @@ { - "version": "2.0.150_localDev", - "versiondate": "09.10.2024 - 09:02:52", - "linksnapshot": "https://github.com/ohAnd/dtuGateway/releases/download/snapshot/dtuGateway_snapshot_2.0.150_localDev.bin", - "link": "https://github.com/ohAnd/dtuGateway/releases/latest/download/dtuGateway_release_2.0.150_localDev.bin" + "version": "2.0.171_localDev", + "versiondate": "10.10.2024 - 20:15:07", + "linksnapshot": "https://github.com/ohAnd/dtuGateway/releases/download/snapshot/dtuGateway_snapshot_2.0.171_localDev.bin", + "link": "https://github.com/ohAnd/dtuGateway/releases/latest/download/dtuGateway_release_2.0.171_localDev.bin" } \ No newline at end of file diff --git a/include/web/index_html.h b/include/web/index_html.h index 430752f..988fc61 100644 --- a/include/web/index_html.h +++ b/include/web/index_html.h @@ -190,6 +190,8 @@ const char INDEX_HTML[] PROGMEM = R"=====(