From 88cc72f0ee4f46569a581573e59db292571a2780 Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Wed, 2 Aug 2023 17:50:27 -0700 Subject: [PATCH] AP_Periph: add networking --- Tools/AP_Periph/AP_Periph.cpp | 4 ++-- Tools/AP_Periph/AP_Periph.h | 2 +- Tools/AP_Periph/Parameters.cpp | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Tools/AP_Periph/AP_Periph.cpp b/Tools/AP_Periph/AP_Periph.cpp index a5be0708ab..6a01a54dda 100644 --- a/Tools/AP_Periph/AP_Periph.cpp +++ b/Tools/AP_Periph/AP_Periph.cpp @@ -100,7 +100,7 @@ void AP_Periph_FW::init() can_start(); -#if AP_NETWORKING_ENABLED +#ifdef HAL_PERIPH_ENABLE_NETWORKING networking.init(); #endif @@ -480,7 +480,7 @@ void AP_Periph_FW::update() can_update(); -#if AP_NETWORKING_ENABLED +#ifdef HAL_PERIPH_ENABLE_NETWORKING networking.update(); #endif diff --git a/Tools/AP_Periph/AP_Periph.h b/Tools/AP_Periph/AP_Periph.h index 32418ca8be..6c977a4d37 100644 --- a/Tools/AP_Periph/AP_Periph.h +++ b/Tools/AP_Periph/AP_Periph.h @@ -304,7 +304,7 @@ public: AP_Logger logger; #endif -#if AP_NETWORKING_ENABLED +#ifdef HAL_PERIPH_ENABLE_NETWORKING AP_Networking networking; #endif diff --git a/Tools/AP_Periph/Parameters.cpp b/Tools/AP_Periph/Parameters.cpp index d5a6d3dd1d..90b9c15715 100644 --- a/Tools/AP_Periph/Parameters.cpp +++ b/Tools/AP_Periph/Parameters.cpp @@ -551,7 +551,7 @@ const AP_Param::Info AP_Periph_FW::var_info[] = { #endif #endif -#if AP_NETWORKING_ENABLED +#ifdef HAL_PERIPH_ENABLE_NETWORKING // @Group: NET_ // @Path: ../libraries/AP_Networking/AP_Networking.cpp GOBJECT(networking, "NET_", AP_Networking),