mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-25 03:36:42 +00:00
Small refactoring
This commit is contained in:
parent
a370cd72a7
commit
343919cd56
@ -607,6 +607,8 @@ void ExecuteCommandPower(uint32_t device, uint32_t state, uint32_t source)
|
|||||||
|
|
||||||
// ShowSource(source);
|
// ShowSource(source);
|
||||||
|
|
||||||
|
// if (1049 == LANGUAGE_LCID) { return; }
|
||||||
|
|
||||||
#ifdef USE_SONOFF_IFAN
|
#ifdef USE_SONOFF_IFAN
|
||||||
if (IsModuleIfan()) {
|
if (IsModuleIfan()) {
|
||||||
TasmotaGlobal.blink_mask &= 1; // No blinking on the fan relays
|
TasmotaGlobal.blink_mask &= 1; // No blinking on the fan relays
|
||||||
|
@ -122,8 +122,12 @@ void EthernetEvent(WiFiEvent_t event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void EthernetSetIp(void) {
|
void EthernetSetIp(void) {
|
||||||
// IPAddress local_ip, IPAddress gateway, IPAddress subnet, IPAddress dns1, IPAddress dns2
|
// Set static IP
|
||||||
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
|
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) {
|
void EthernetInit(void) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user