Skip to content

Commit 9612c96

Browse files
authored
🐛 Fix ci errors (#16)
1 parent 9a1d475 commit 9612c96

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

src/ch9329.cpp

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ ch9329::ch9329(hal::serial& p_uart)
4545
{
4646
}
4747

48-
ch9329::mouse_absolute::mouse_absolute(std::uint16_t p_screen_width,
49-
std::uint16_t p_screen_height)
48+
ch9329::mouse_absolute::mouse_absolute(std::uint16_t p_screen_width, // NOLINT
49+
std::uint16_t p_screen_height) // NOLINT
5050
: m_screen_width(p_screen_width)
5151
, m_screen_height(p_screen_height)
5252

@@ -85,13 +85,15 @@ hal::byte get_size_byte(hal::byte p_command)
8585
return 0x07;
8686
case cmd_send_ms_rel_data:
8787
return 0x05;
88+
default:
89+
return 0x00;
8890
}
8991
return 0x00;
9092
}
9193

9294
void send_start_bytes(serial& p_serial,
93-
hal::byte p_command,
94-
std::uint8_t p_size = 0)
95+
hal::byte p_command, // NOLINT
96+
std::uint8_t p_size = 0) // NOLINT
9597
{
9698
std::array<hal::byte, header_frame_size> start_bytes = {
9799
header_byte_1, header_byte_2, address_byte, p_command
@@ -105,8 +107,8 @@ void send_start_bytes(serial& p_serial,
105107
}
106108

107109
hal::byte calculate_sum(std::span<hal::byte> p_bytes,
108-
hal::byte p_command,
109-
std::uint8_t p_custom_length = 0)
110+
hal::byte p_command, // NOLINT
111+
std::uint8_t p_custom_length = 0) // NOLINT
110112
{
111113
std::uint8_t sum_byte = header_byte_1;
112114
sum_byte += header_byte_2;
@@ -224,8 +226,9 @@ ch9329::mouse_absolute& ch9329::mouse_absolute::right_button(bool p_pressed)
224226
}
225227

226228
// mouse relative functions
227-
ch9329::mouse_relative& ch9329::mouse_relative::move(std::int8_t p_x_offset,
228-
std::int8_t p_y_offset)
229+
ch9329::mouse_relative& ch9329::mouse_relative::move(
230+
std::int8_t p_x_offset, // NOLINT
231+
std::int8_t p_y_offset) // NOLINT
229232
{
230233
m_data[2] = p_x_offset;
231234
m_data[3] = p_y_offset;

0 commit comments

Comments
 (0)