Skip to content

Commit

Permalink
Release v2.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
pablogs9 authored Nov 21, 2023
2 parents 9717530 + 371718c commit 0c6743f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ list(APPEND _deps "microcdr\;${_microcdr_version}")
###############################################################################
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
if(NOT UCLIENT_SUPERBUILD)
project(microxrcedds_client VERSION "2.4.1" LANGUAGES C)
project(microxrcedds_client VERSION "2.4.2" LANGUAGES C)
else()
project(uclient_superbuild NONE)
include(${PROJECT_SOURCE_DIR}/cmake/SuperBuild.cmake)
Expand Down
2 changes: 1 addition & 1 deletion examples/PublishHelloWorldCAN/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <stdlib.h> //atoi

#define STREAM_HISTORY 8
#define BUFFER_SIZE UXR_CONFIG_CAN_TRANSPORT_MTU* STREAM_HISTORY
#define BUFFER_SIZE UXR_CAN_TRANSPORT_MTU* STREAM_HISTORY

int main(
int args,
Expand Down
5 changes: 3 additions & 2 deletions include/uxr/client/profile/transport/can/can_transport.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ extern "C"
#include <uxr/client/visibility.h>
#include <uxr/client/transport.h>

#define UXR_CONFIG_CAN_TRANSPORT_MTU 63
/* For CAN-FD, MTU is fixed value */
#define UXR_CAN_TRANSPORT_MTU 63

typedef struct uxrCANTransport
{
uint8_t buffer[UXR_CONFIG_CAN_TRANSPORT_MTU];
uint8_t buffer[UXR_CAN_TRANSPORT_MTU];
uxrCommunication comm;
struct uxrCANPlatform platform;
} uxrCANTransport;
Expand Down
2 changes: 1 addition & 1 deletion src/c/profile/transport/can/can_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ bool uxr_init_can_transport(
transport->comm.send_msg = send_can_msg;
transport->comm.recv_msg = recv_can_msg;
transport->comm.comm_error = get_can_error;
transport->comm.mtu = UXR_CONFIG_CAN_TRANSPORT_MTU;
transport->comm.mtu = UXR_CAN_TRANSPORT_MTU;
UXR_INIT_LOCK(&transport->comm.mutex);
rv = true;
}
Expand Down

0 comments on commit 0c6743f

Please sign in to comment.