Skip to content

Commit

Permalink
ESP23: I2S comment out unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
drzony committed Apr 25, 2020
1 parent 9d1df11 commit 423588f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platforms/esp/32/clockless_i2s_esp32.h
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ class ClocklessController : public CPixelLEDController<RGB_ORDER>
freq=1/(CLOCK_DIVIDER_N+(double)CLOCK_DIVIDER_B/CLOCK_DIVIDER_A);
freq=freq*I2S_BASE_CLK;
// Serial.printf("calculted for i2s frequency:%f Mhz N:%d B:%d A:%d\n",freq/1000000,CLOCK_DIVIDER_N,CLOCK_DIVIDER_B,CLOCK_DIVIDER_A);
double pulseduration=1000000000/freq;
// double pulseduration=1000000000/freq;
// Serial.printf("Pulse duration: %f ns\n",pulseduration);
// gPulsesPerBit = (T1ns + T2ns + T3ns)/FASTLED_I2S_NS_PER_PULSE;

Expand Down Expand Up @@ -645,7 +645,7 @@ class ClocklessController : public CPixelLEDController<RGB_ORDER>
}

// -- Transpose and encode the pixel data for the DMA buffer
int buf_index = 0;
// int buf_index = 0;
for (int channel = 0; channel < NUM_COLOR_CHANNELS; channel++) {

// -- Tranpose each array: all the bit 7's, then all the bit 6's, ...
Expand Down

0 comments on commit 423588f

Please sign in to comment.