@@ -45,8 +45,8 @@ ch9329::ch9329(hal::serial& p_uart)
45
45
{
46
46
}
47
47
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
50
50
: m_screen_width(p_screen_width)
51
51
, m_screen_height(p_screen_height)
52
52
@@ -85,13 +85,15 @@ hal::byte get_size_byte(hal::byte p_command)
85
85
return 0x07 ;
86
86
case cmd_send_ms_rel_data:
87
87
return 0x05 ;
88
+ default :
89
+ return 0x00 ;
88
90
}
89
91
return 0x00 ;
90
92
}
91
93
92
94
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
95
97
{
96
98
std::array<hal::byte, header_frame_size> start_bytes = {
97
99
header_byte_1, header_byte_2, address_byte, p_command
@@ -105,8 +107,8 @@ void send_start_bytes(serial& p_serial,
105
107
}
106
108
107
109
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
110
112
{
111
113
std::uint8_t sum_byte = header_byte_1;
112
114
sum_byte += header_byte_2;
@@ -224,8 +226,9 @@ ch9329::mouse_absolute& ch9329::mouse_absolute::right_button(bool p_pressed)
224
226
}
225
227
226
228
// 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
229
232
{
230
233
m_data[2 ] = p_x_offset;
231
234
m_data[3 ] = p_y_offset;
0 commit comments