summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
Diffstat (limited to 'src/device')
-rw-r--r--src/device/usbd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/device/usbd.h b/src/device/usbd.h
index c0bec9566..c707cecfc 100644
--- a/src/device/usbd.h
+++ b/src/device/usbd.h
@@ -70,6 +70,7 @@ bool tud_mounted(void);
bool tud_suspended(void);
// Check if device is ready to transfer
+TU_ATTR_ALWAYS_INLINE
static inline bool tud_ready(void)
{
return tud_mounted() && !tud_suspended();