mirror of
https://github.com/lora-aprs/LoRa_APRS_iGate.git
synced 2025-12-06 07:42:00 +01:00
fix ota and wifi bug with ethernet
This commit is contained in:
parent
b31709bf27
commit
7ddaf8f23c
|
|
@ -113,14 +113,15 @@ void setup() {
|
||||||
|
|
||||||
if (userConfig.wifi.active) {
|
if (userConfig.wifi.active) {
|
||||||
LoRaSystem.getTaskManager().addAlwaysRunTask(&wifiTask);
|
LoRaSystem.getTaskManager().addAlwaysRunTask(&wifiTask);
|
||||||
LoRaSystem.getTaskManager().addTask(&otaTask);
|
|
||||||
tcpip = true;
|
tcpip = true;
|
||||||
} else if (boardConfig->Type == eETH_BOARD) {
|
}
|
||||||
|
if (boardConfig->Type == eETH_BOARD) {
|
||||||
LoRaSystem.getTaskManager().addAlwaysRunTask(ðTask);
|
LoRaSystem.getTaskManager().addAlwaysRunTask(ðTask);
|
||||||
tcpip = true;
|
tcpip = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tcpip) {
|
if (tcpip) {
|
||||||
|
LoRaSystem.getTaskManager().addTask(&otaTask);
|
||||||
LoRaSystem.getTaskManager().addTask(&ntpTask);
|
LoRaSystem.getTaskManager().addTask(&ntpTask);
|
||||||
if (userConfig.ftp.active) {
|
if (userConfig.ftp.active) {
|
||||||
LoRaSystem.getTaskManager().addTask(&ftpTask);
|
LoRaSystem.getTaskManager().addTask(&ftpTask);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue