parent
672f401a4d
commit
91223e91e8
|
@ -171,16 +171,16 @@ void adalight(){
|
||||||
if (outPos < sizeof(leds)){
|
if (outPos < sizeof(leds)){
|
||||||
#ifdef CALIBRATE
|
#ifdef CALIBRATE
|
||||||
if(outPos < 3)
|
if(outPos < 3)
|
||||||
ledsRaw[outPos++] = buffer[indexOut++];
|
ledsRaw[outPos++] = buffer[indexOut];
|
||||||
else{
|
else{
|
||||||
ledsRaw[outPos] = ledsRaw[outPos%3]; // Sets RGB data to first LED color
|
ledsRaw[outPos] = ledsRaw[outPos%3]; // Sets RGB data to first LED color
|
||||||
outPos++;
|
outPos++;
|
||||||
indexOut++;
|
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
ledsRaw[outPos++] = buffer[indexOut++]; // Issue next byte
|
ledsRaw[outPos++] = buffer[indexOut]; // Issue next byte
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
indexOut++;
|
||||||
bytesBuffered--;
|
bytesBuffered--;
|
||||||
bytesRemaining--;
|
bytesRemaining--;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue