mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-28 16:26:12 +02:00
Merge branch 'fsck-block-development03-enhancement-versioninfo' into development03
This commit is contained in:
commit
201c96ec3b
2 changed files with 38 additions and 2 deletions
38
src/app.cpp
38
src/app.cpp
|
@ -465,7 +465,43 @@ 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 ENABLE_SYSLOG
|
||||
"Y"
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_SIMULATOR
|
||||
"S"
|
||||
#endif
|
||||
|
||||
"-"
|
||||
#ifdef LANG_DE
|
||||
"de"
|
||||
#else
|
||||
"en"
|
||||
#endif
|
||||
);
|
||||
|
||||
#ifdef AP_ONLY
|
||||
mTimestamp = 1;
|
||||
|
|
|
@ -386,7 +386,7 @@ class app : public IApp, public ah::Scheduler {
|
|||
CmtRadio<> mCmtRadio;
|
||||
#endif
|
||||
|
||||
char mVersion[12];
|
||||
char mVersion[23];
|
||||
settings mSettings;
|
||||
settings_t *mConfig;
|
||||
bool mSavePending;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue