Skip to content

Commit a9745c9

Browse files
HiFiPhileandrewleech
authored andcommitted
Fix tud_sof_cb_enable() return type.
1 parent 8f0459c commit a9745c9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/device/usbd.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -390,10 +390,9 @@ bool tud_connect(void) {
390390
return true;
391391
}
392392

393-
bool tud_sof_cb_enable(bool en)
393+
void tud_sof_cb_enable(bool en)
394394
{
395395
usbd_sof_enable(_usbd_rhport, SOF_CONSUMER_USER, en);
396-
return true;
397396
}
398397

399398
//--------------------------------------------------------------------+

src/device/usbd.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ bool tud_disconnect(void);
9898
bool tud_connect(void);
9999

100100
// Enable or disable the Start Of Frame callback support
101-
bool tud_sof_cb_enable(bool en);
101+
void tud_sof_cb_enable(bool en);
102102

103103
// Carry out Data and Status stage of control transfer
104104
// - If len = 0, it is equivalent to sending status only

0 commit comments

Comments
 (0)