From f41d0f5defc04dabb26de1976a2400d94f37a7f2 Mon Sep 17 00:00:00 2001 From: TMRh20 Date: Tue, 2 Apr 2024 11:20:40 -0600 Subject: [PATCH] Minor changes, revert from testing --- src/AutoAnalogAudio.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/AutoAnalogAudio.h b/src/AutoAnalogAudio.h index d9e66e5..b4a94ff 100644 --- a/src/AutoAnalogAudio.h +++ b/src/AutoAnalogAudio.h @@ -200,14 +200,15 @@ class AutoAnalog inline static void adcCallback(uint16_t *buf, uint32_t buf_len); inline static void set_callback(void(*function)(uint16_t *buf, uint32_t buf_len)); inline static bool adcReady; - inline static int16_t dacBuf0[MAX_BUFFER_SIZE]; - inline static int16_t dacBuf1[MAX_BUFFER_SIZE]; + inline static uint16_t dacBuf0[MAX_BUFFER_SIZE]; + inline static uint16_t dacBuf1[MAX_BUFFER_SIZE]; bool micOn; int pwrPin; int dinPin; int clkPin; int8_t gain; inline static uint32_t sampleCounter; + #elif defined (ARDUINO_ARCH_NRF52840) || defined (ARDUINO_ARCH_NRF52) || defined (ARDUINO_NRF52840_FEATHER) && !defined __MBED__ uint16_t dacBuf0[MAX_BUFFER_SIZE]; uint16_t dacBuf1[MAX_BUFFER_SIZE]; @@ -225,6 +226,7 @@ class AutoAnalog int clkPin; int8_t gain; uint32_t sampleCounter; + //void DACC_Handler(); #endif private: