mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Add COMMIT_HASH to info endpoint #308
This commit is contained in:
parent
7af944f008
commit
06ea14fd7c
@ -649,7 +649,12 @@ void hasp_get_info(JsonDocument& doc)
|
||||
char size_buf[32];
|
||||
JsonObject info = doc.createNestedObject(F(D_MANUFACTURER));
|
||||
|
||||
info[F(D_INFO_VERSION)] = haspDevice.get_version();
|
||||
buffer = haspDevice.get_version();
|
||||
#ifdef COMMIT_HASH
|
||||
buffer += " ";
|
||||
buffer += COMMIT_HASH;
|
||||
#endif
|
||||
info[F(D_INFO_VERSION)] = buffer;
|
||||
|
||||
buffer = __DATE__;
|
||||
buffer += (" ");
|
||||
|
Loading…
x
Reference in New Issue
Block a user