Skip to content

Commit

Permalink
Channels not used by any priority level should be zero
Browse files Browse the repository at this point in the history
  • Loading branch information
LongHairedHacker committed Sep 10, 2015
1 parent f3c809e commit 2035657
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions twinkl.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ void twinkl_render(uint8_t *channels) {
uint8_t level;

for(chan = 0; chan < TWINKL_CHANNEL_COUNT; chan++) {
channels[chan] = 0;
for(level = 0; level < TWINKL_LEVEL_COUNT; level++) {
if(get_mask_bit(level,chan)) {
channels[chan] = twinkl_channels[level][chan];
Expand Down

0 comments on commit 2035657

Please sign in to comment.