diff --git a/libraries/AP_Networking/AP_Networking_Config.h b/libraries/AP_Networking/AP_Networking_Config.h index 803b06e1b7..b0f174618f 100644 --- a/libraries/AP_Networking/AP_Networking_Config.h +++ b/libraries/AP_Networking/AP_Networking_Config.h @@ -6,7 +6,7 @@ #endif #ifndef AP_NETWORKING_ENABLED -#define AP_NETWORKING_ENABLED ((CONFIG_HAL_BOARD == HAL_BOARD_LINUX) || (CONFIG_HAL_BOARD == HAL_BOARD_SITL)) +#define AP_NETWORKING_ENABLED (((CONFIG_HAL_BOARD == HAL_BOARD_LINUX) || (CONFIG_HAL_BOARD == HAL_BOARD_SITL)) && !defined(__APPLE__)) #endif #ifndef AP_NETWORKING_BACKEND_DEFAULT_ENABLED diff --git a/libraries/AP_Networking/AP_Networking_PPP.cpp b/libraries/AP_Networking/AP_Networking_PPP.cpp index b906743020..b5437de9e4 100644 --- a/libraries/AP_Networking/AP_Networking_PPP.cpp +++ b/libraries/AP_Networking/AP_Networking_PPP.cpp @@ -35,7 +35,7 @@ uint32_t AP_Networking_PPP::ppp_output_cb(ppp_pcb *pcb, const void *data, uint32 uint32_t remaining = len; const uint8_t *ptr = (const uint8_t *)data; while (remaining > 0) { - auto n = driver.uart->write(ptr, remaining); + const auto n = driver.uart->write(ptr, remaining); if (n > 0) { remaining -= n; ptr += n; diff --git a/libraries/AP_Networking/wscript b/libraries/AP_Networking/wscript index e1ed0c9af2..f48864d3cc 100644 --- a/libraries/AP_Networking/wscript +++ b/libraries/AP_Networking/wscript @@ -4,6 +4,10 @@ import pathlib def configure(cfg): + + if not cfg.env.BOARD_CLASS in ['SITL', 'LINUX', 'ChibiOS']: + return + extra_src = [ 'modules/lwip/src/core/*c', 'modules/lwip/src/core/ipv4/*c',