Correctly position #defines

This commit is contained in:
Blaz Kristan 2022-07-06 19:49:55 +02:00
parent 9519c8edbd
commit bdea2acf67
2 changed files with 8 additions and 8 deletions

View File

@ -28,20 +28,20 @@
#ifdef SEGMENT
#undef SEGMENT
#define SEGMENT _segments[_segment_index]
#endif
#ifdef SEGCOLOR
#undef SEGCOLOR
#define SEGCOLOR(x) _colors_t[x]
#endif
#ifdef SEGENV
#undef SEGENV
#define SEGENV _segment_runtimes[_segment_index]
#endif
#ifdef SEGLEN
#undef SEGLEN
#define SEGLEN _virtualSegmentLength
#endif
#define SEGMENT _segments[_segment_index]
#define SEGCOLOR(x) _colors_t[x]
#define SEGENV _segment_runtimes[_segment_index]
#define SEGLEN _virtualSegmentLength
// setUpMatrix() - constructs ledmap array from matrix of panels with WxH pixels
// this converts physical (possibly irregular) LED arrangement into well defined

View File

@ -29,20 +29,20 @@
#ifdef SEGMENT
#undef SEGMENT
#define SEGMENT _segments[_segment_index]
#endif
#ifdef SEGCOLOR
#undef SEGCOLOR
#define SEGCOLOR(x) _colors_t[x]
#endif
#ifdef SEGENV
#undef SEGENV
#define SEGENV _segment_runtimes[_segment_index]
#endif
#ifdef SEGLEN
#undef SEGLEN
#define SEGLEN _virtualSegmentLength
#endif
#define SEGMENT _segments[_segment_index]
#define SEGCOLOR(x) _colors_t[x]
#define SEGENV _segment_runtimes[_segment_index]
#define SEGLEN _virtualSegmentLength
/*
Custom per-LED mapping has moved!