Skip to content

Commit 76c9297

Browse files
committed
AudioKit remove actions on SPI
1 parent 680f4d6 commit 76c9297

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/AudioLibs/AudioKit.h

-7
Original file line numberDiff line numberDiff line change
@@ -589,13 +589,6 @@ class AudioKitStream : public AudioStream {
589589
/// Setup the supported default actions
590590
void setupActions() {
591591
TRACEI();
592-
// SPI might have been activated
593-
#ifdef ARDUINO
594-
if (!cfg.sd_active){
595-
LOGW("Deactivating SPI because SD is not active");
596-
SPI.end();
597-
}
598-
#endif
599592

600593
// pin conflicts with the SD CS pin for AIThinker and buttons
601594
if (! (cfg.sd_active && (AUDIOKIT_BOARD==5 || AUDIOKIT_BOARD==6))){

src/Experiments/AudioDAC.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ class OversamplingDAC : public AudioPrint {
216216
/// Releases the memory
217217
virtual void reset() {
218218
if (current_values!=nullptr){
219-
delete last_values;
219+
delete current_values;
220220
current_values = nullptr;
221221
}
222222
if (last_values!=nullptr){

0 commit comments

Comments
 (0)