diff options
| author | hathach <[email protected]> | 2018-06-23 13:19:36 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-06-23 13:19:36 +0700 |
| commit | b9f8575e2d0632b2b4a2358cf181c276c49eca2f (patch) | |
| tree | 4241290fee52b748099bb984163408b01af0a325 /src/common | |
| parent | d438000b99a5dbd5357d042fa48d0d87f180f032 (diff) | |
clean up device cdc
separate cdc tx & rx bufsize
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_fifo.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/tusb_fifo.c b/src/common/tusb_fifo.c index b4bb70b87..d6f34f33f 100644 --- a/src/common/tusb_fifo.c +++ b/src/common/tusb_fifo.c @@ -37,6 +37,7 @@ /**************************************************************************/
#include "tusb_fifo.h"
+#include "common/tusb_verify.h" // for ASSERT
/*------------------------------------------------------------------*/
/*
@@ -207,7 +208,9 @@ bool fifo_peek_at(fifo_t* f, uint16_t position, void * p_buffer) bool fifo_write(fifo_t* f, void const * p_data)
{
if ( !fifo_initalized(f) ) return false;
- if ( fifo_full(f) && !f->overwritable ) return false;
+
+// if ( fifo_full(f) && !f->overwritable ) return false;
+ TU_ASSERT( !(fifo_full(f) && !f->overwritable) );
mutex_lock_if_needed(f);
|
