commit | 19ea60f9ac21e44dd39dce829bd11d277af9fa6b | [log] [tgz] |
---|---|---|
author | Brian Silverman <bsilver16384@gmail.com> | Wed Jan 03 21:43:15 2018 -0800 |
committer | Austin Schuh <austin@peloton-tech.com> | Wed Jan 03 22:32:33 2018 -0800 |
tree | 3b45705a7b155ddc0b5c2d7e947df4c51fa459b3 | |
parent | 8309762cf9e459684624fbd0f398e5cd877c3014 [diff] [blame] |
Pull the medium-specific pieces out of the common code Change-Id: I9cd1824a6bf535e285553fbe5f79f6d72919f048
diff --git a/motors/usb/cdc.h b/motors/usb/cdc.h index 4f5aa33..00eec4c 100644 --- a/motors/usb/cdc.h +++ b/motors/usb/cdc.h
@@ -49,6 +49,8 @@ size_t Read(void *buffer, size_t buffer_size); size_t Write(const void *buffer, size_t buffer_size); + bool write_queue_empty() const { return tx_queue_.empty(); } + private: enum class NextEndpoint0Out { kNone,