From 63a672e9dd5f03b191abfaea66275a7984ae2c14 Mon Sep 17 00:00:00 2001 From: Barbudor Date: Mon, 12 Apr 2021 21:16:13 +0200 Subject: [PATCH] allow DEVICE_NAME in user_config_override --- tasmota/settings.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasmota/settings.ino b/tasmota/settings.ino index 11f835592..9b52b867e 100644 --- a/tasmota/settings.ino +++ b/tasmota/settings.ino @@ -750,7 +750,11 @@ void SettingsDefaultSet2(void) { SettingsUpdateText(SET_FRIENDLYNAME2, PSTR(FRIENDLY_NAME"2")); SettingsUpdateText(SET_FRIENDLYNAME3, PSTR(FRIENDLY_NAME"3")); SettingsUpdateText(SET_FRIENDLYNAME4, PSTR(FRIENDLY_NAME"4")); + #ifdef DEVICE_NAME + SettingsUpdateText(SET_DEVICENAME, PSTR(DEVICE_NAME)); + #else SettingsUpdateText(SET_DEVICENAME, SettingsText(SET_FRIENDLYNAME1)); + #endif SettingsUpdateText(SET_OTAURL, PSTR(OTA_URL)); // Power