Use defined buffer sizes

This commit is contained in:
BlackMark 2020-07-03 20:54:12 +02:00
parent 51bd0c5621
commit 09316e0e6f

View File

@ -91,8 +91,8 @@ class VirtualComPort {
} }
private: private:
static constexpr auto TX_BUFFER_SIZE = 64; static constexpr auto TX_BUFFER_SIZE = CDC_DATA_FS_OUT_PACKET_SIZE;
static constexpr auto RX_BUFFER_SIZE = 64; static constexpr auto RX_BUFFER_SIZE = CDC_DATA_FS_IN_PACKET_SIZE;
static Buffer<TX_BUFFER_SIZE> m_txBuffer; static Buffer<TX_BUFFER_SIZE> m_txBuffer;
static Buffer<TX_BUFFER_SIZE> m_usbAsyncTxBuffer; static Buffer<TX_BUFFER_SIZE> m_usbAsyncTxBuffer;