Skip to content

Commit 114c359

Browse files
committed
fix: align control_mode position with MAX_MESSAGE_LENGTH
1 parent f664193 commit 114c359

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/test_reverse_interface.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ class ReverseInterfaceTest : public ::testing::Test
120120
b_pos += sizeof(int32_t);
121121
}
122122

123+
b_pos = buf + (sizeof(int32_t) * (MAX_MESSAGE_LENGTH - 1));
124+
123125
// Decode control mode
124126
std::memcpy(&val, b_pos, sizeof(int32_t));
125127
control_mode = be32toh(val);

0 commit comments

Comments
 (0)