mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
Merge branch 'dev' of https://github.com/emsesp/EMS-ESP32 into dev
This commit is contained in:
@@ -1396,8 +1396,13 @@ bool System::command_info(const char * value, const int8_t id, JsonObject output
|
||||
JsonObject node;
|
||||
|
||||
// System
|
||||
node = output["system"].to<JsonObject>();
|
||||
node["version"] = EMSESP_APP_VERSION;
|
||||
node = output["system"].to<JsonObject>();
|
||||
// prevent false negataive in Unity tests everytime the version changes
|
||||
#if defined(EMSESP_UNITY)
|
||||
node["version"] = "dev";
|
||||
#else
|
||||
node["version"] = EMSESP_APP_VERSION;
|
||||
#endif
|
||||
node["uptime"] = uuid::log::format_timestamp_ms(uuid::get_uptime_ms(), 3);
|
||||
node["uptimeSec"] = uuid::get_uptime_sec();
|
||||
#ifndef EMSESP_STANDALONE
|
||||
|
||||
Reference in New Issue
Block a user