Skip to content

Commit

Permalink
fix remap return type
Browse files Browse the repository at this point in the history
  • Loading branch information
profezzorn committed Apr 3, 2023
1 parent 0c8615b commit 2ba20bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion styles/remap.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ class Remap {
return RunLayer(&color_, blade);
}

auto getColor(int led) -> decltype(color_.getColor(led)) {
auto getColor(int led) -> decltype(MixColors(color_.getColor(led),
color_.getColor(led), 1, 15)) {
int pos = f_.getInteger(led);
led = clamp(pos * num_leds_, 0, num_leds_ * 32768 - 1);
int fraction = led & 0x7fff;
Expand Down
1 change: 1 addition & 0 deletions styles/tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ Monitoring monitor;
#include "../functions/center_dist.h"
#include "../functions/effect_position.h"
#include "../functions/random.h"
#include "../functions/mult.h"
#include "mix.h"
#include "strobe.h"
#include "hump_flicker.h"
Expand Down

0 comments on commit 2ba20bf

Please sign in to comment.