fix ota and wifi bug with ethernet

This commit is contained in:
Peter Buchegger 2022-04-07 11:12:45 +02:00
parent b31709bf27
commit 7ddaf8f23c

View file

@ -113,14 +113,15 @@ void setup() {
if (userConfig.wifi.active) {
LoRaSystem.getTaskManager().addAlwaysRunTask(&wifiTask);
LoRaSystem.getTaskManager().addTask(&otaTask);
tcpip = true;
} else if (boardConfig->Type == eETH_BOARD) {
}
if (boardConfig->Type == eETH_BOARD) {
LoRaSystem.getTaskManager().addAlwaysRunTask(&ethTask);
tcpip = true;
}
if (tcpip) {
LoRaSystem.getTaskManager().addTask(&otaTask);
LoRaSystem.getTaskManager().addTask(&ntpTask);
if (userConfig.ftp.active) {
LoRaSystem.getTaskManager().addTask(&ftpTask);