Skip to content

Commit

Permalink
xbox/stadia: retrying messages are "debug"
Browse files Browse the repository at this point in the history
To prevent spamming UART
  • Loading branch information
ricardoquesada committed Apr 13, 2024
1 parent db6d69a commit 1f2c127
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/bluepad32/parser/uni_hid_parser_stadia.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ static void stadia_play_dual_rumble_now(struct uni_hid_device_s* d,
status = hids_client_send_write_report(d->hids_cid, STADIA_RUMBLE_REPORT_ID, HID_REPORT_TYPE_OUTPUT,
(const uint8_t*)&ff, sizeof(ff));
if (status == ERROR_CODE_COMMAND_DISALLOWED) {
logi("Stadia: Failed to send rumble report, error=%#x, retrying...\n", status);
logd("Stadia: Failed to send rumble report, error=%#x, retrying...\n", status);
ins->rumble_timer_delayed_start.process = &on_stadia_set_rumble_on;
ins->rumble_timer_delayed_start.context = d;
ins->rumble_state = STATE_RUMBLE_DELAYED;
Expand Down Expand Up @@ -170,7 +170,7 @@ static void on_stadia_set_rumble_off(btstack_timer_source_t* ts) {
status = hids_client_send_write_report(d->hids_cid, STADIA_RUMBLE_REPORT_ID, HID_REPORT_TYPE_OUTPUT,
(const uint8_t*)&ff, sizeof(ff));
if (status == ERROR_CODE_COMMAND_DISALLOWED) {
logi("Stadia: Failed to turn off rumble, error=%#x, retrying...\n", status);
logd("Stadia: Failed to turn off rumble, error=%#x, retrying...\n", status);
ins->rumble_timer_duration.process = &on_stadia_set_rumble_off;
ins->rumble_timer_duration.context = d;
ins->rumble_state = STATE_RUMBLE_IN_PROGRESS;
Expand Down
4 changes: 2 additions & 2 deletions src/components/bluepad32/parser/uni_hid_parser_xboxone.c
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ static void xboxone_play_quad_rumble_now(struct uni_hid_device_s* d,
sizeof(ff) - 2 // subtract the 2 bytes from total
);
if (status == ERROR_CODE_COMMAND_DISALLOWED) {
logi("Xbox: Failed to send rumble report, error=%#x, retrying...\n", status);
logd("Xbox: Failed to send rumble report, error=%#x, retrying...\n", status);
ins->rumble_timer_delayed_start.process = &on_xboxone_set_rumble_on;
ins->rumble_timer_delayed_start.context = d;
ins->rumble_state = XBOXONE_STATE_RUMBLE_DELAYED;
Expand Down Expand Up @@ -668,7 +668,7 @@ static void on_xboxone_set_rumble_off(btstack_timer_source_t* ts) {
sizeof(ff) - 2 // subtract the 2 bytes from total
);
if (status == ERROR_CODE_COMMAND_DISALLOWED) {
logi("Xbox: Failed to turn off rumble, error=%#x, retrying...\n", status);
logd("Xbox: Failed to turn off rumble, error=%#x, retrying...\n", status);
ins->rumble_timer_duration.process = &on_xboxone_set_rumble_off;
ins->rumble_timer_duration.context = d;
ins->rumble_state = XBOXONE_STATE_RUMBLE_IN_PROGRESS;
Expand Down

0 comments on commit 1f2c127

Please sign in to comment.