Browse Source

Show APP_REVISION value in terminal and web

v2
Maxim Prokhorov 6 years ago
parent
commit
2879f58fb1
2 changed files with 8 additions and 1 deletions
  1. +5
    -1
      code/espurna/utils.ino
  2. +3
    -0
      code/html/index.html

+ 5
- 1
code/espurna/utils.ino View File

@ -260,7 +260,11 @@ void _info_print_memory_layout_line(const char * name, unsigned long bytes) {
void info() {
DEBUG_MSG_P(PSTR("\n\n"));
DEBUG_MSG_P(PSTR("[INIT] %s %s\n"), (char *) APP_NAME, (char *) APP_VERSION);
if (strlen(APP_REVISION) > 0) {
DEBUG_MSG_P(PSTR("[INIT] %s %s (%s)\n"), (char *) APP_NAME, (char *) APP_VERSION, (char *) APP_REVISION);
} else {
DEBUG_MSG_P(PSTR("[INIT] %s %s\n"), (char *) APP_NAME, (char *) APP_VERSION);
}
DEBUG_MSG_P(PSTR("[INIT] %s\n"), (char *) APP_AUTHOR);
DEBUG_MSG_P(PSTR("[INIT] %s\n\n"), (char *) APP_WEBSITE);
DEBUG_MSG_P(PSTR("[INIT] CPU chip ID: 0x%06X\n"), ESP.getChipId());


+ 3
- 0
code/html/index.html View File

@ -245,6 +245,9 @@
<div class="pure-u-1-2">Firmware version</div>
<div class="pure-u-11-24"><span class="right" name="app_version"></span></div>
<div class="pure-u-1-2">Firmware revision</div>
<div class="pure-u-11-24"><span class="right" name="app_revision"></span></div>
<div class="pure-u-1-2">Firmware build date</div>
<div class="pure-u-11-24"><span class="right" name="app_build"></span></div>


Loading…
Cancel
Save