summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2024-05-18 23:10:55 +0200
committerAndrew Leech <[email protected]>2024-05-27 20:35:35 +1000
commita9745c9818da85a0b31ef04c556530a3bef18ec1 (patch)
tree99a67917069a5c98e8ef1ec572c69f1c6b9fea1c /src/device
parent8f0459c89e61dfb50a2da73dd6935f6e317b50ac (diff)
Fix tud_sof_cb_enable() return type.
Diffstat (limited to 'src/device')
-rw-r--r--src/device/usbd.c3
-rw-r--r--src/device/usbd.h2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index 0fb0aed4e..922faf112 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -390,10 +390,9 @@ bool tud_connect(void) {
return true;
}
-bool tud_sof_cb_enable(bool en)
+void tud_sof_cb_enable(bool en)
{
usbd_sof_enable(_usbd_rhport, SOF_CONSUMER_USER, en);
- return true;
}
//--------------------------------------------------------------------+
diff --git a/src/device/usbd.h b/src/device/usbd.h
index cba94fdae..e439dd961 100644
--- a/src/device/usbd.h
+++ b/src/device/usbd.h
@@ -98,7 +98,7 @@ bool tud_disconnect(void);
bool tud_connect(void);
// Enable or disable the Start Of Frame callback support
-bool tud_sof_cb_enable(bool en);
+void tud_sof_cb_enable(bool en);
// Carry out Data and Status stage of control transfer
// - If len = 0, it is equivalent to sending status only