Skip to content

Commit eca5945

Browse files
MarekPietakapi-no
authored andcommitted
applications: nrf_desktop: Use warning log on HID report sent error
The HID report sent error may be reported while disconnecting HID transport (BLE/USB), it may not be related to actual error. Switch from error log level to warning log level. Change also improves log message. Jira: NCSDK-33593 Signed-off-by: Marek Pieta <[email protected]>
1 parent 9cc4527 commit eca5945

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

applications/nrf_desktop/src/modules/hid_provider_consumer_ctrl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ static void consumer_ctrl_report_sent(uint8_t report_id, bool error)
184184
__ASSERT_NO_MSG(active_sub);
185185

186186
if (error) {
187-
LOG_ERR("HID report send error");
187+
LOG_WRN("Error while sending report");
188188
/* HID state will try to send next HID consumer control report to refresh state. */
189189
report_data.update_needed = true;
190190
}

applications/nrf_desktop/src/modules/hid_provider_keyboard.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ static void keyboard_report_sent(uint8_t report_id, bool error)
230230
((report_id == REPORT_ID_BOOT_KEYBOARD) && boot_mode));
231231

232232
if (error) {
233-
LOG_ERR("HID report send error");
233+
LOG_WRN("Error while sending report");
234234
/* HID state will try to send next HID keyboard report to refresh state. */
235235
report_data.update_needed = true;
236236
}

applications/nrf_desktop/src/modules/hid_provider_mouse.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ static void mouse_report_sent(uint8_t report_id, bool error)
263263
report_data.pipeline_cnt--;
264264

265265
if (error) {
266-
LOG_ERR("HID report send error");
266+
LOG_WRN("Error while sending report");
267267
/* HID state will send subsequent HID mouse report to update state. No need to do
268268
* anything.
269269
*/

applications/nrf_desktop/src/modules/hid_provider_system_ctrl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ static void system_ctrl_report_sent(uint8_t report_id, bool error)
184184
__ASSERT_NO_MSG(active_sub);
185185

186186
if (error) {
187-
LOG_ERR("HID report send error");
187+
LOG_WRN("Error while sending report");
188188
/* HID state will try to send next HID system control report to refresh state. */
189189
report_data.update_needed = true;
190190
}

0 commit comments

Comments
 (0)