Skip to content

Commit 5260af7

Browse files
committed
minor fixes #sonar
1 parent 142590d commit 5260af7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libudpard/udpard.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
///
174174
/// Typically, if block pool allocators are used, the following block sizes should be served:
175175
///
176-
/// - (MTU+library overhead) blocks for the TX and RX pipelines (usually less than 2048 bytes);
176+
/// - MTU sized blocks for the TX and RX pipelines (usually less than 2048 bytes);
177177
/// - TX fragment item sized blocks for the TX pipeline (less than 128 bytes).
178178
/// - RX session object sized blocks for the RX pipeline (less than 512 bytes);
179179
/// - RX fragment handle sized blocks for the RX pipeline (less than 128 bytes).
@@ -201,7 +201,7 @@ extern "C" {
201201

202202
/// Semantic version of this library (not the Cyphal specification).
203203
/// API will be backward compatible within the same major version.
204-
#define UDPARD_VERSION_MAJOR 1
204+
#define UDPARD_VERSION_MAJOR 2
205205
#define UDPARD_VERSION_MINOR 0
206206

207207
/// The version number of the Cyphal specification implemented by this library.
@@ -460,7 +460,7 @@ struct UdpardTx
460460
/// One transport frame (UDP datagram) stored in the UdpardTx transmission queue along with its metadata.
461461
/// The datagram should be sent to the indicated UDP/IP endpoint with the specified DSCP value.
462462
/// The datagram should be discarded (transmission aborted) if the deadline has expired.
463-
/// All fields are READ-ONLY except mutable payload `datagram_payload` field, which could be nullified to indicate
463+
/// All fields are READ-ONLY except the mutable `datagram_payload` field, which could be nullified to indicate
464464
/// a transfer of the payload memory ownership to somewhere else.
465465
///
466466
struct UdpardTxItem
@@ -483,7 +483,7 @@ struct UdpardTxItem
483483
/// LibUDPard selects the DSCP value based on the transfer priority level and the configured DSCP mapping.
484484
uint_least8_t dscp;
485485

486-
/// Holds original transfer priority level (before DSCP mapping, see above `dscp`).
486+
/// Holds the original transfer priority level (before DSCP mapping, see above `dscp`).
487487
enum UdpardPriority priority;
488488

489489
/// This UDP/IP datagram compiled by libudpard should be sent to this endpoint.

0 commit comments

Comments
 (0)