Skip to content

Commit

Permalink
Fix C3 compiler issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
blazoncek committed Sep 25, 2024
1 parent 33cf82a commit 906f8fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wled00/colors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ uint32_t color_add(uint32_t c1, uint32_t c2, bool preserveCR)
uint32_t g = wg & 0xFFFF;

if (preserveCR) { // preserve color ratios
unsigned max = std::max(r,g); // check for overflow note
uint32_t max = std::max(r,g); // check for overflow note
max = std::max(max,b);
max = std::max(max,w);
//unsigned max = r; // check for overflow note
Expand Down

0 comments on commit 906f8fc

Please sign in to comment.