forked from M-Labs/thermostat
main: don't re- set_ipv4_config every tick
This commit is contained in:
parent
e13ed37271
commit
22b0c9fcad
@ -441,7 +441,11 @@ fn main() -> ! {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Apply new IPv4 address/gateway
|
// Apply new IPv4 address/gateway
|
||||||
new_ipv4_config.map(|config| server.set_ipv4_config(config));
|
new_ipv4_config.take()
|
||||||
|
.map(|config| {
|
||||||
|
server.set_ipv4_config(config.clone());
|
||||||
|
ipv4_config = config;
|
||||||
|
});
|
||||||
|
|
||||||
// Update watchdog
|
// Update watchdog
|
||||||
wd.feed();
|
wd.feed();
|
||||||
|
Loading…
Reference in New Issue
Block a user