From cc56677ba30adf89c05ea98af631a6484b5afba1 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Mon, 29 Oct 2018 12:21:27 +0100 Subject: [PATCH] Add Gui Hostname display Add command SetOption53 0/1 to toggle gui display of Hostname and IP address --- sonoff/_changelog.ino | 1 + sonoff/settings.h | 2 +- sonoff/xdrv_01_webserver.ino | 22 +++++++++++++++++++++- 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/sonoff/_changelog.ino b/sonoff/_changelog.ino index aace62b7d..8fa067b63 100644 --- a/sonoff/_changelog.ino +++ b/sonoff/_changelog.ino @@ -1,5 +1,6 @@ /* 6.2.1.20 20181028 * Add command SetOption35 0..255 (seconds) to delay mDNS initialization to control possible Wifi connect problems + * Add command SetOption53 0/1 to toggle gui display of Hostname and IP address * * 6.2.1.19 20181023 * Fix header file execution order by renaming user_config.h to my_user_config.h diff --git a/sonoff/settings.h b/sonoff/settings.h index 29aaf2121..8e0a22a2f 100644 --- a/sonoff/settings.h +++ b/sonoff/settings.h @@ -66,7 +66,7 @@ typedef union { // Restricted by MISRA-C Rule 18.4 bu uint32_t timers_enable : 1; // bit 0 (v6.1.1b) uint32_t user_esp8285_enable : 1; // bit 1 (v6.1.1.14) uint32_t time_append_timezone : 1; // bit 2 (v6.2.1.2) - uint32_t spare03 : 1; + uint32_t gui_hostname_ip : 1; // bit 3 (v6.2.1.20) uint32_t spare04 : 1; uint32_t spare05 : 1; uint32_t spare06 : 1; diff --git a/sonoff/xdrv_01_webserver.ino b/sonoff/xdrv_01_webserver.ino index 3cb2b31cb..261510924 100644 --- a/sonoff/xdrv_01_webserver.ino +++ b/sonoff/xdrv_01_webserver.ino @@ -119,7 +119,7 @@ const char HTTP_HEAD_STYLE[] PROGMEM = #else "