Skip to content

Commit

Permalink
Oops, them brackets can be tricky.
Browse files Browse the repository at this point in the history
  • Loading branch information
atuline committed Aug 29, 2021
1 parent 60f40d7 commit 802ca8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wled00/audio_reactive.h
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ void FFTcode( void * parameter) {
//extern double volume; // COMMENTED OUT - UNUSED VARIABLE COMPILER WARNINGS

for(int i=0; i<samples; i++) {
if (digitalMic && dmEnabled == false) {
if ((digitalMic && dmEnabled) == false) {
micData = analogRead(audioPin); // Analog Read
} else {
int32_t digitalSample = 0;
Expand All @@ -303,7 +303,7 @@ void FFTcode( void * parameter) {
// DEBUGSR_PRINT(micDataSm);
// DEBUGSR_PRINT("\n");

if (digitalMic && dmEnabled == false) { while(micros() - microseconds < sampling_period_us){/*empty loop*/} }
if ((digitalMic && dmEnabled) == false) { while(micros() - microseconds < sampling_period_us){/*empty loop*/} }

microseconds += sampling_period_us;
}
Expand Down

0 comments on commit 802ca8f

Please sign in to comment.