Skip to content

Commit f742430

Browse files
committed
Fixes kashimAstro#32 using reference instead of copy
1 parent 3be13f9 commit f742430

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/led.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class LED {
5353
215,218,220,223,225,228,231,233,236,239,241,244,247,249,252,255 };
5454
}
5555

56-
void setWS2801(int numLed, vector<ofColor> colors, int BRIGHTNESS){
56+
void setWS2801(int numLed, vector<ofColor>& colors, int BRIGHTNESS){
5757
int a;
5858
uint8_t buffer0[1], buffer1[4];
5959
srand(time(NULL));
@@ -105,7 +105,7 @@ class LED {
105105
}
106106
}
107107

108-
void setAPA102(int numLed, vector<ofColor> colors, int BRIGHTNESS){
108+
void setAPA102(int numLed, vector<ofColor>& colors, int BRIGHTNESS){
109109
int a;
110110
uint8_t buffer0[1], buffer1[4];
111111
srand(time(NULL));

0 commit comments

Comments
 (0)