summaryrefslogtreecommitdiff
path: root/tinyusb
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-06-21 14:52:18 +0700
committerhathach <[email protected]>2013-06-21 14:52:18 +0700
commit07f36e8a6100549073657e3276dbe9ccf1bd9614 (patch)
tree593827df3c331422dcdc4a347b9b50e730f02384 /tinyusb
parent5c564df8c172af0da3badabfa8e813fdd33949ff (diff)
fix a stupid bug
Diffstat (limited to 'tinyusb')
-rw-r--r--tinyusb/class/custom_class_host.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tinyusb/class/custom_class_host.c b/tinyusb/class/custom_class_host.c
index 568c20f3f..87e910bbe 100644
--- a/tinyusb/class/custom_class_host.c
+++ b/tinyusb/class/custom_class_host.c
@@ -68,7 +68,7 @@ tusb_error_t tusbh_custom_read(uint8_t dev_addr, uint16_t vendor_id, uint16_t pr
}
ASSERT( p_buffer != NULL && length != 0, TUSB_ERROR_INVALID_PARA);
- if ( hcd_pipe_is_idle(custom_interface[dev_addr-1].pipe_in) )
+ if ( !hcd_pipe_is_idle(custom_interface[dev_addr-1].pipe_in) )
{
return TUSB_ERROR_INTERFACE_IS_BUSY;
}