diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/main.cpp b/source/main.cpp index b8d2fa1..dc38ddd 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -18,6 +18,8 @@ #include <array>
+static_assert(sizeof(adcsample_t) == sizeof(uint16_t));
+
#if CACHE_LINE_SIZE > 0
CC_ALIGN(CACHE_LINE_SIZE)
#endif
@@ -50,7 +52,7 @@ int main() if (char cmd; usbd.read(&cmd) > 0) {
switch (cmd) {
case 'r': // Read in analog signal
- adc.getSamples(&adc_samples[0], adc_samples.size());
+ adc.getSamples(&adc_samples[0], 100);//adc_samples.size());
usbd.write(adc_samples.data(), adc_samples.size());
break;
case 'i': // Identify ourself as an stmdsp device
|