Skip to content

Commit ed65662

Browse files
committed
Add to functions in headers.
1 parent 83beecc commit ed65662

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ clang_format(
2828

2929
cc_library(
3030
name = "xsens_ll",
31+
includes = ["src"],
3132
visibility = ["//visibility:public"],
3233
deps = [
3334
"//src:data_packet",
@@ -36,15 +37,14 @@ cc_library(
3637
"//src:xsens_manager",
3738
"//src:xsens_types",
3839
],
39-
includes = ["src"],
4040
)
4141

4242
cc_library(
4343
name = "xsens_ll_linux",
44+
includes = ["src"],
4445
visibility = ["//visibility:public"],
4546
deps = [
4647
":xsens_ll",
4748
"//src:linux_xsens_manager",
4849
],
49-
includes = ["src"],
5050
)

src/xbus_parser.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ void PackBigEndian64(T data, uint8_t *buf) {
124124
buf[7] = static_cast<uint8_t>(raw_data >> 0);
125125
}
126126

127-
ParsedMsg ParseMsg(const uint8_t *buf, unsigned int len) {
127+
static ParsedMsg ParseMsg(const uint8_t *buf, unsigned int len) {
128128
ParsedMsg msg = {.len = 0, .data = nullptr};
129129

130130
// Minimum message length.
@@ -197,8 +197,8 @@ struct PackResult {
197197
unsigned int len;
198198
};
199199

200-
PackResult PackMsg(uint8_t *buf, unsigned int buf_len, MsgId id, const uint8_t *data,
201-
unsigned int data_len) {
200+
static PackResult PackMsg(uint8_t *buf, unsigned int buf_len, MsgId id, const uint8_t *data,
201+
unsigned int data_len) {
202202
PackResult result = {.error = PackError::kNone, .len = 0};
203203

204204
if (data_len > UINT16_MAX) {

src/xsens_manager.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ class XsensManager {
5656
timeout_us_{default_timeout_us_} {}
5757

5858
static bool ReadStatusNoError(const ReadStatus& status) {
59-
return status == ReadStatus::kSuccess || status == ReadStatus::kNoMsg || status == ReadStatus::kReadingMsg;
59+
return status == ReadStatus::kSuccess || status == ReadStatus::kNoMsg ||
60+
status == ReadStatus::kReadingMsg;
6061
}
6162

6263
MsgInfo ReadMsg() {

0 commit comments

Comments
 (0)