Skip to content

Commit

Permalink
Merge pull request #13 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 authored May 10, 2022
2 parents 3e90ddc + 2235d78 commit c59e07c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main/cpx.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,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
2 changes: 1 addition & 1 deletion main/router.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ static void route(Receiver_t receive, CPXRoutablePacket_t* rxp, RouteContext_t*
ESP_LOGD("ROUTER", "%s [0x%02X] -> ESP32 [0x%02X] (%u)", routerName, source, destination, cpxDataLength);
splitAndSend(rxp, context, espTransportSend, ESP_TRANSPORT_MTU - CPX_ROUTING_PACKED_SIZE);
break;
case CPX_T_HOST:
case CPX_T_WIFI_HOST:
ESP_LOGD("ROUTER", "%s [0x%02X] -> HOST [0x%02X] (%u)", routerName, source, destination, cpxDataLength);
splitAndSend(rxp, context, wifi_transport_send, WIFI_TRANSPORT_MTU - CPX_ROUTING_PACKED_SIZE);
break;
Expand Down

0 comments on commit c59e07c

Please sign in to comment.