Skip to content

Commit 89e85c8

Browse files
authored
Add comment on how to set the used UART port (#39)
1 parent 2557814 commit 89e85c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

microros_extensions/microros_transports.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ typedef struct {
4343

4444
#if defined(MICRO_ROS_TRANSPORT_SERIAL)
4545
#define MICRO_ROS_FRAMING_REQUIRED true
46+
// Set the UART used for communication. e.g. {.fd = 0} leads to UART_0 being used.
4647
static zephyr_transport_params_t default_params = {.fd = 0};
4748
#elif defined(MICRO_ROS_TRANSPORT_UDP)
4849
#define MICRO_ROS_FRAMING_REQUIRED false
@@ -61,4 +62,4 @@ size_t zephyr_transport_read(struct uxrCustomTransport* transport, uint8_t* buf,
6162
}
6263
#endif
6364

64-
#endif //_MICROROS_CLIENT_ZEPHYR_SERIAL_TRANSPORT_H_
65+
#endif //_MICROROS_CLIENT_ZEPHYR_SERIAL_TRANSPORT_H_

0 commit comments

Comments
 (0)