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 #ifdef SEGMENT
#undef SEGMENT #undef SEGMENT
#define SEGMENT _segments[_segment_index]
#endif #endif
#ifdef SEGCOLOR #ifdef SEGCOLOR
#undef SEGCOLOR #undef SEGCOLOR
#define SEGCOLOR(x) _colors_t[x]
#endif #endif
#ifdef SEGENV #ifdef SEGENV
#undef SEGENV #undef SEGENV
#define SEGENV _segment_runtimes[_segment_index]
#endif #endif
#ifdef SEGLEN #ifdef SEGLEN
#undef SEGLEN #undef SEGLEN
#define SEGLEN _virtualSegmentLength
#endif #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 // setUpMatrix() - constructs ledmap array from matrix of panels with WxH pixels
// this converts physical (possibly irregular) LED arrangement into well defined // this converts physical (possibly irregular) LED arrangement into well defined

View File

@ -29,20 +29,20 @@
#ifdef SEGMENT #ifdef SEGMENT
#undef SEGMENT #undef SEGMENT
#define SEGMENT _segments[_segment_index]
#endif #endif
#ifdef SEGCOLOR #ifdef SEGCOLOR
#undef SEGCOLOR #undef SEGCOLOR
#define SEGCOLOR(x) _colors_t[x]
#endif #endif
#ifdef SEGENV #ifdef SEGENV
#undef SEGENV #undef SEGENV
#define SEGENV _segment_runtimes[_segment_index]
#endif #endif
#ifdef SEGLEN #ifdef SEGLEN
#undef SEGLEN #undef SEGLEN
#define SEGLEN _virtualSegmentLength
#endif #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! Custom per-LED mapping has moved!