Skip to content

Commit

Permalink
Merge pull request #94 from bitcraze/evoggy/cpx-rename-host-target
Browse files Browse the repository at this point in the history
Renamed CPX_T_HOST to CPX_T_WIFI_HOST
  • Loading branch information
krichardsson committed May 10, 2022
2 parents d0b1c7b + 286ce9e commit ae1c22a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/other/wifi-img-streamer/wifi-img-streamer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions lib/cpx/inc/cpx.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit ae1c22a

Please sign in to comment.