Skip to content

Commit 9f01d2c

Browse files
Robert WinslowRobert Winslow
authored andcommitted
Changes requested per code review.
1 parent 391f6e8 commit 9f01d2c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

SConstruct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ platforms = [
4848
],
4949
'LINKFLAGS' : [
5050
"-lrt",
51-
"-lm",
51+
"-lm",
5252
],
5353
},
5454
],

ws2811.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,7 @@ const char * ws2811_get_return_t_str(const ws2811_return_t state)
12841284
}
12851285

12861286

1287-
void setCustomGammaFactor(ws2811_t *ws2811, double gammaFactor)
1287+
void ws2811_set_custom_gamma_factor(ws2811_t *ws2811, double gamma_factor)
12881288
{
12891289
for (int chan = 0; chan < RPI_PWM_CHANNELS; chan++)
12901290
{
@@ -1295,7 +1295,7 @@ void setCustomGammaFactor(ws2811_t *ws2811, double gammaFactor)
12951295
for(int counter = 0; counter < 256; counter++)
12961296
{
12971297

1298-
channel->gamma[counter] = (gammaFactor > 0)? (int)(pow((float)counter / (float)255.00, gammaFactor) * 255.00 + 0.5) : counter;
1298+
channel->gamma[counter] = (gamma_factor > 0)? (int)(pow((float)counter / (float)255.00, gamma_factor) * 255.00 + 0.5) : counter;
12991299

13001300
}
13011301
}

ws2811.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ void ws2811_fini(ws2811_t *ws2811); //< Tear
122122
ws2811_return_t ws2811_render(ws2811_t *ws2811); //< Send LEDs off to hardware
123123
ws2811_return_t ws2811_wait(ws2811_t *ws2811); //< Wait for DMA completion
124124
const char * ws2811_get_return_t_str(const ws2811_return_t state); //< Get string representation of the given return state
125-
void setCustomGammaFactor(ws2811_t *ws2811, double gammaFactor); //Set a custom Gamma correction array based on a gamma correction factor
125+
void ws2811_set_custom_gamma_factor(ws2811_t *ws2811, double gamma_factor); //< Set a custom Gamma correction array based on a gamma correction factor
126126

127127
#ifdef __cplusplus
128128
}

0 commit comments

Comments
 (0)