From 343919cd56992f385e9d0828919023bb6d7d2f47 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Thu, 24 Feb 2022 16:28:45 +0100 Subject: [PATCH] Small refactoring --- tasmota/support_tasmota.ino | 2 ++ tasmota/xdrv_82_esp32_ethernet.ino | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tasmota/support_tasmota.ino b/tasmota/support_tasmota.ino index c17185981..4b673c930 100644 --- a/tasmota/support_tasmota.ino +++ b/tasmota/support_tasmota.ino @@ -607,6 +607,8 @@ void ExecuteCommandPower(uint32_t device, uint32_t state, uint32_t source) // ShowSource(source); +// if (1049 == LANGUAGE_LCID) { return; } + #ifdef USE_SONOFF_IFAN if (IsModuleIfan()) { TasmotaGlobal.blink_mask &= 1; // No blinking on the fan relays diff --git a/tasmota/xdrv_82_esp32_ethernet.ino b/tasmota/xdrv_82_esp32_ethernet.ino index 2240e6e04..b7cfada24 100644 --- a/tasmota/xdrv_82_esp32_ethernet.ino +++ b/tasmota/xdrv_82_esp32_ethernet.ino @@ -122,8 +122,12 @@ void EthernetEvent(WiFiEvent_t event) { } void EthernetSetIp(void) { - // IPAddress local_ip, IPAddress gateway, IPAddress subnet, IPAddress dns1, IPAddress dns2 - ETH.config(Settings->eth_ipv4_address[0], Settings->eth_ipv4_address[1], Settings->eth_ipv4_address[2], Settings->eth_ipv4_address[3], Settings->eth_ipv4_address[4]); // Set static IP + // Set static IP + ETH.config(Settings->eth_ipv4_address[0], // IPAddress local_ip + Settings->eth_ipv4_address[1], // IPAddress gateway + Settings->eth_ipv4_address[2], // IPAddress subnet + Settings->eth_ipv4_address[3], // IPAddress dns1 + Settings->eth_ipv4_address[4]); // IPAddress dns2 } void EthernetInit(void) {