diff --git a/main/cpx.h b/main/cpx.h index 66967d6..16d7004 100644 --- a/main/cpx.h +++ b/main/cpx.h @@ -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; diff --git a/main/router.c b/main/router.c index b6149f4..0ef513b 100644 --- a/main/router.c +++ b/main/router.c @@ -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;