Skip to content

Commit af1a966

Browse files
committed
usermod/word-clock-matrix: Fix build
I've just assigned an arbitrary ID number. The ID system should get removed entirely; we don't want to have to change a base system header to add each module.
1 parent 1492f1c commit af1a966

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
File renamed without changes.

usermods/word-clock-matrix/word-clock-matrix.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ class WordClockMatrix : public Usermod
3636
//other segments are text
3737
for (int i = 1; i < 10; i++)
3838
{
39-
Segment &seg = strip.getSegment(i);
40-
seg.colors[0] = ((0 << 24) | ((0 & 0xFF) << 16) | ((190 & 0xFF) << 8) | ((180 & 0xFF)));
39+
Segment &text_seg = strip.getSegment(i);
40+
text_seg.colors[0] = ((0 << 24) | ((0 & 0xFF) << 16) | ((190 & 0xFF) << 8) | ((180 & 0xFF)));
4141
strip.getSegment(i).setOption(0, true);
4242
strip.setBrightness(64);
4343
}
@@ -67,7 +67,7 @@ class WordClockMatrix : public Usermod
6767
//strip.resetSegments();
6868
selectWordSegments(true);
6969
colorUpdated(CALL_MODE_FX_CHANGED);
70-
savePreset(13, false);
70+
savePreset(13);
7171
selectWordSegments(false);
7272
//strip.getSegment(0).setOption(0, true);
7373
strip.getSegment(0).setOption(2, true);
@@ -329,7 +329,7 @@ class WordClockMatrix : public Usermod
329329

330330
uint16_t getId()
331331
{
332-
return USERMOD_ID_WORD_CLOCK_MATRIX;
332+
return 500;
333333
}
334334

335335

0 commit comments

Comments
 (0)