Skip to content

Commit

Permalink
Fixed bug with enabled CFG_TUD_AUDIO_ENABLE_FEEDBACK_FORMAT_CORRECTIO…
Browse files Browse the repository at this point in the history
…N not handling high-speed devices
  • Loading branch information
skuep committed Oct 31, 2022
1 parent 7bbb087 commit b9dea41
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/class/audio/audio_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -2446,13 +2446,12 @@ bool tud_audio_n_fb_set(uint8_t func_id, uint32_t feedback)
*(fb++) = (feedback >> 18) & 0xFF;
// 4th byte is needed to work correctly with MS Windows
*fb = 0;
}else
#else
} else
#endif
{
// Send value as-is, caller will choose the appropriate format
_audiod_fct[func_id].feedback.value = feedback;
}
#endif

// Schedule a transmit with the new value if EP is not busy - this triggers repetitive scheduling of the feedback value
if (!usbd_edpt_busy(_audiod_fct[func_id].rhport, _audiod_fct[func_id].ep_fb))
Expand Down

0 comments on commit b9dea41

Please sign in to comment.