From 1cb69968d454da5bb61025bc5bd4cc14f2b607a6 Mon Sep 17 00:00:00 2001 From: TMRh20 Date: Tue, 22 Oct 2024 01:42:56 -0600 Subject: [PATCH] Fix nRF52_PDM_PWMTest example --- .../Platforms/NRF52/NRF52_PDM_PWMTest/NRF52_PDM_PWMTest.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Platforms/NRF52/NRF52_PDM_PWMTest/NRF52_PDM_PWMTest.ino b/examples/Platforms/NRF52/NRF52_PDM_PWMTest/NRF52_PDM_PWMTest.ino index 34dd83e..138c0da 100644 --- a/examples/Platforms/NRF52/NRF52_PDM_PWMTest/NRF52_PDM_PWMTest.ino +++ b/examples/Platforms/NRF52/NRF52_PDM_PWMTest/NRF52_PDM_PWMTest.ino @@ -18,7 +18,7 @@ void loop() { aaAudio.getADC(320); // Get 320 Samples from the ADC for (int i = 0; i < 320; i++) { // Copy them into the DAC Buffer and change from signed to unsigned ( + 0x8000) - aaAudio.dacBuffer16[i] = (uint16_t)(aaAudio.adcBuffer16[i] + 0x8000); + aaAudio.dacBuffer16[i] = (uint16_t)(aaAudio.adcBuffer16[i]); } aaAudio.feedDAC(0,320); // Feed the DAC with the ADC data }