mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-30 01:06:11 +02:00
Enhancement: Add info about compiled modules to version string
This commit is contained in:
parent
60111d0696
commit
f5158d4725
2 changed files with 23 additions and 2 deletions
23
src/app.cpp
23
src/app.cpp
|
@ -465,7 +465,28 @@ void app:: zeroIvValues(bool checkAvail, bool skipYieldDay) {
|
|||
|
||||
//-----------------------------------------------------------------------------
|
||||
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
|
||||
mTimestamp = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue