From 286ce9e6c0b0b8104798fde0373c50112d1c8d23 Mon Sep 17 00:00:00 2001 From: Marcus Date: Tue, 10 May 2022 11:09:17 +0200 Subject: [PATCH] Renamed CPX_T_HOST to CPX_T_WIFI_HOST --- examples/other/wifi-img-streamer/wifi-img-streamer.c | 2 +- lib/cpx/inc/cpx.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/other/wifi-img-streamer/wifi-img-streamer.c b/examples/other/wifi-img-streamer/wifi-img-streamer.c index d6e40d8..20bdaee 100644 --- a/examples/other/wifi-img-streamer/wifi-img-streamer.c +++ b/examples/other/wifi-img-streamer/wifi-img-streamer.c @@ -257,7 +257,7 @@ void camera_task(void *parameters) pi_camera_control(&camera, PI_CAMERA_CMD_STOP, 0); // We're reusing the same packet, so initialize the route once - cpxInitRoute(CPX_T_GAP8, CPX_T_HOST, CPX_F_APP, &txp.route); + cpxInitRoute(CPX_T_GAP8, CPX_T_WIFI_HOST, CPX_F_APP, &txp.route); uint32_t imgSize = 0; diff --git a/lib/cpx/inc/cpx.h b/lib/cpx/inc/cpx.h index 60ce471..a5611f4 100644 --- a/lib/cpx/inc/cpx.h +++ b/lib/cpx/inc/cpx.h @@ -33,7 +33,7 @@ typedef enum { CPX_T_STM32 = 1, // The STM in the Crazyflie CPX_T_ESP32 = 2, // The ESP on the AI-deck - CPX_T_HOST = 3, // A remote computer connected via Wifi + CPX_T_WIFI_HOST = 3, // A remote computer connected via Wifi CPX_T_GAP8 = 4 // The GAP8 on the AI-deck } CPXTarget_t; @@ -62,7 +62,7 @@ typedef struct { } CPXPacket_t; typedef enum { - LOG_TO_WIFI = CPX_T_HOST, + LOG_TO_WIFI = CPX_T_WIFI_HOST, LOG_TO_CRTP = CPX_T_STM32 } CPXConsoleTarget_t;