From 09316e0e6f67b56e2827b92bdcca9b88fcf4e221 Mon Sep 17 00:00:00 2001 From: BlackMark Date: Fri, 3 Jul 2020 20:54:12 +0200 Subject: [PATCH] Use defined buffer sizes --- AdaptiveBrightnessFirmware/Inc/uart_vcp.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AdaptiveBrightnessFirmware/Inc/uart_vcp.hpp b/AdaptiveBrightnessFirmware/Inc/uart_vcp.hpp index f492f50..0d849e4 100644 --- a/AdaptiveBrightnessFirmware/Inc/uart_vcp.hpp +++ b/AdaptiveBrightnessFirmware/Inc/uart_vcp.hpp @@ -91,8 +91,8 @@ class VirtualComPort { } private: - static constexpr auto TX_BUFFER_SIZE = 64; - static constexpr auto RX_BUFFER_SIZE = 64; + static constexpr auto TX_BUFFER_SIZE = CDC_DATA_FS_OUT_PACKET_SIZE; + static constexpr auto RX_BUFFER_SIZE = CDC_DATA_FS_IN_PACKET_SIZE; static Buffer m_txBuffer; static Buffer m_usbAsyncTxBuffer;