From e080a26651f90c88176140d63a74c93c2f4041a2 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Fri, 22 Jan 2021 21:41:11 -0500 Subject: add SampleBuffer and ErrorManager; WAV testing --- gui/stmdsp.cpp | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'gui/stmdsp.cpp') diff --git a/gui/stmdsp.cpp b/gui/stmdsp.cpp index 9119284..897e643 100644 --- a/gui/stmdsp.cpp +++ b/gui/stmdsp.cpp @@ -36,24 +36,10 @@ namespace stmdsp } } - /*std::vector device::sample(unsigned long int count) { - if (connected()) { - uint8_t request[3] = { - 'd', - static_cast(count), - static_cast(count >> 8) - }; - m_serial.write(request, 3); - std::vector data (count); - m_serial.read(reinterpret_cast(data.data()), data.size() * sizeof(adcsample_t)); - return data; - } else { - return {}; - } - }*/ - void device::continuous_set_buffer_size(unsigned int size) { if (connected()) { + m_buffer_size = size; + uint8_t request[3] = { 'B', static_cast(size), -- cgit v1.2.3