Skip to content

Commit d86528b

Browse files
committed
support WLED_AUTOSEGMENTS compile flag
see wled#4183
1 parent e286bff commit d86528b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

wled00/wled.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,11 @@ WLED_GLOBAL byte bootPreset _INIT(0); // save preset to load
372372
//if true, a segment per bus will be created on boot and LED settings save
373373
//if false, only one segment spanning the total LEDs is created,
374374
//but not on LED settings save if there is more than one segment currently
375+
#ifdef WLED_AUTOSEGMENTS
376+
WLED_GLOBAL bool autoSegments _INIT(true);
377+
#else
375378
WLED_GLOBAL bool autoSegments _INIT(false);
379+
#endif
376380
WLED_GLOBAL bool correctWB _INIT(false); // CCT color correction of RGB color
377381
WLED_GLOBAL bool cctFromRgb _INIT(false); // CCT is calculated from RGB instead of using seg.cct
378382
WLED_GLOBAL bool gammaCorrectCol _INIT(true ); // use gamma correction on colors // WLEDMM that's what you would think, but the code tells a different story.

0 commit comments

Comments
 (0)