Correctly position #defines
This commit is contained in:
parent
9519c8edbd
commit
bdea2acf67
@ -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
|
||||||
|
@ -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!
|
||||||
|
Loading…
Reference in New Issue
Block a user