Browse Source

Enhancement: Add info about compiled modules to version string

pull/1357/head
Frank 9 months ago
parent
commit
f5158d4725
  1. 23
      src/app.cpp
  2. 2
      src/app.h

23
src/app.cpp

@ -465,7 +465,28 @@ void app:: zeroIvValues(bool checkAvail, bool skipYieldDay) {
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void app::resetSystem(void) { void app::resetSystem(void) {
snprintf(mVersion, 12, "%d.%d.%d", VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH); snprintf(mVersion, sizeof(mVersion), "%d.%d.%d%s", VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH,
"-"
#ifdef ENABLE_PROMETHEUS_EP
"P"
#endif
#ifdef ENABLE_MQTT
"M"
#endif
#ifdef PLUGIN_DISPLAY
"D"
#endif
#ifdef ENABLE_HISTORY
"H"
#endif
#ifdef AP_ONLY
"A"
#endif
);
#ifdef AP_ONLY #ifdef AP_ONLY
mTimestamp = 1; mTimestamp = 1;

2
src/app.h

@ -386,7 +386,7 @@ class app : public IApp, public ah::Scheduler {
CmtRadio<> mCmtRadio; CmtRadio<> mCmtRadio;
#endif #endif
char mVersion[12]; char mVersion[18];
settings mSettings; settings mSettings;
settings_t *mConfig; settings_t *mConfig;
bool mSavePending; bool mSavePending;

Loading…
Cancel
Save