Skip to content

Commit

Permalink
Migration of ESP32 targets from idf 4.4 to 5.3:
Browse files Browse the repository at this point in the history
- fixed bug in case when HAL_ESP32_WIFI defined as 0 (disable wifi)
  • Loading branch information
arg7 committed Sep 13, 2024
1 parent b5f0654 commit de3e036
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libraries/AP_HAL_ESP32/HAL_ESP32_Class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,22 @@
#include "RCInput.h"
#include "RCOutput.h"
#include "Storage.h"

#include "AnalogIn.h"

#include "Util.h"
#if AP_SIM_ENABLED
#include <AP_HAL/SIMState.h>
#endif


static ESP32::UARTDriver cons(0);
#ifdef HAL_ESP32_WIFI
#if HAL_ESP32_WIFI == 1
static ESP32::WiFiDriver serial1Driver; //tcp, client should connect to 192.168.4.1 port 5760
#elif HAL_ESP32_WIFI == 2
static ESP32::WiFiUdpDriver serial1Driver; //udp
#else
static Empty::UARTDriver serial1Driver;
#endif
#else
static Empty::UARTDriver serial1Driver;
Expand Down

0 comments on commit de3e036

Please sign in to comment.