Skip to content

Commit 5bccb5f

Browse files
authored
removed commented checks
1 parent 74bc159 commit 5bccb5f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

wled00/FX.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6643,7 +6643,6 @@ static const char _data_FX_MODE_GRAVIMETER[] PROGMEM = "Gravimeter@Rate of fall,
66436643
// * JUGGLES //
66446644
//////////////////////
66456645
uint16_t mode_juggles(void) { // Juggles. By Andrew Tuline.
6646-
//if (SEGLEN == 1) return mode_static();
66476646
um_data_t *um_data;
66486647
if (!usermods.getUMData(&um_data, USERMOD_ID_AUDIOREACTIVE)) {
66496648
// add support for no audio
@@ -7027,7 +7026,6 @@ static const char _data_FX_MODE_BLURZ[] PROGMEM = "Blurz@Fade rate,Blur;!,Color
70277026
// ** DJLight //
70287027
/////////////////////////
70297028
uint16_t mode_DJLight(void) { // Written by ??? Adapted by Will Tatam.
7030-
//if (SEGLEN == 1) return mode_static();
70317029
// No need to prevent from executing on single led strips, only mid will be set (mid = 0)
70327030
const int mid = SEGLEN / 2;
70337031

@@ -7100,7 +7098,6 @@ static const char _data_FX_MODE_FREQMAP[] PROGMEM = "Freqmap@Fade rate,Starting
71007098
// ** Freqmatrix //
71017099
///////////////////////
71027100
uint16_t mode_freqmatrix(void) { // Freqmatrix. By Andreas Pleschung.
7103-
//if (SEGLEN == 1) return mode_static();
71047101
// No need to prevent from executing on single led strips, we simply change pixel 0 each time and avoid the shift
71057102
um_data_t *um_data;
71067103
if (!usermods.getUMData(&um_data, USERMOD_ID_AUDIOREACTIVE)) {
@@ -7207,7 +7204,6 @@ static const char _data_FX_MODE_FREQPIXELS[] PROGMEM = "Freqpixels@Fade rate,Sta
72077204
// As a compromise between speed and accuracy we are currently sampling with 10240Hz, from which we can then determine with a 512bin FFT our max frequency is 5120Hz.
72087205
// Depending on the music stream you have you might find it useful to change the frequency mapping.
72097206
uint16_t mode_freqwave(void) { // Freqwave. By Andreas Pleschung.
7210-
//if (SEGLEN == 1) return mode_static();
72117207
// As before, this effect can also work on single pixels, we just lose the shifting effect
72127208
um_data_t *um_data;
72137209
if (!usermods.getUMData(&um_data, USERMOD_ID_AUDIOREACTIVE)) {
@@ -7318,7 +7314,6 @@ static const char _data_FX_MODE_GRAVFREQ[] PROGMEM = "Gravfreq@Rate of fall,Sens
73187314
// ** Noisemove //
73197315
//////////////////////
73207316
uint16_t mode_noisemove(void) { // Noisemove. By: Andrew Tuline
7321-
//if (SEGLEN == 1) return mode_static();
73227317
um_data_t *um_data;
73237318
if (!usermods.getUMData(&um_data, USERMOD_ID_AUDIOREACTIVE)) {
73247319
// add support for no audio
@@ -7346,7 +7341,6 @@ static const char _data_FX_MODE_NOISEMOVE[] PROGMEM = "Noisemove@Speed of perlin
73467341
// ** Rocktaves //
73477342
//////////////////////
73487343
uint16_t mode_rocktaves(void) { // Rocktaves. Same note from each octave is same colour. By: Andrew Tuline
7349-
//if (SEGLEN == 1) return mode_static();
73507344
um_data_t *um_data;
73517345
if (!usermods.getUMData(&um_data, USERMOD_ID_AUDIOREACTIVE)) {
73527346
// add support for no audio
@@ -7388,9 +7382,8 @@ static const char _data_FX_MODE_ROCKTAVES[] PROGMEM = "Rocktaves@;!,!;!;01f;m12=
73887382
///////////////////////
73897383
// Combines peak detection with FFT_MajorPeak and FFT_Magnitude.
73907384
uint16_t mode_waterfall(void) { // Waterfall. By: Andrew Tuline
7391-
//if (SEGLEN == 1) return mode_static();
73927385
// effect can work on single pixels, we just lose the shifting effect
7393-
7386+
73947387
um_data_t *um_data;
73957388
if (!usermods.getUMData(&um_data, USERMOD_ID_AUDIOREACTIVE)) {
73967389
// add support for no audio

0 commit comments

Comments
 (0)