main: don't re- set_ipv4_config every tick

This commit is contained in:
Astro 2020-12-20 20:43:20 +01:00
parent e13ed37271
commit 22b0c9fcad

View File

@ -441,7 +441,11 @@ fn main() -> ! {
});
// 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
wd.feed();