Browse Source

Fix compile issue of Peaks on old compilers?

tags/v0.6.0
Andrew Belt 7 years ago
parent
commit
63a87dc709
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Peaks.cpp

+ 1
- 1
src/Peaks.cpp View File

@@ -564,7 +564,7 @@ void Peaks::refreshLeds() {
switch (function_[i]) {
case FUNCTION_DRUM_GENERATOR:
case FUNCTION_FM_DRUM_GENERATOR:
b[i] = std::abs(gBrightness[i]) >> 8;
b[i] = (int16_t) std::abs(gBrightness[i]) >> 8;
b[i] = b[i] >= 255 ? 255 : b[i];
break;
case FUNCTION_LFO:


Loading…
Cancel
Save