diff options
author | Johannes Kroll <jkroll@lavabit.com> | 2012-03-06 23:23:55 +0100 |
---|---|---|
committer | Johannes Kroll <jkroll@lavabit.com> | 2012-03-06 23:23:55 +0100 |
commit | cba5231172040f2ed70f8bae5e6843591244ac92 (patch) | |
tree | 093743d2a70cab2ab0c7626b751a05d14b70da23 | |
parent | b9d468299fc3699c6ae4c10b4b9a683dadb778e7 (diff) |
remove unnecessary masking
-rw-r--r-- | shiftbrite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shiftbrite.c b/shiftbrite.c index 048405f..331a7b1 100644 --- a/shiftbrite.c +++ b/shiftbrite.c @@ -123,7 +123,7 @@ void sb_tick(void) else { int i= sb_num_shiftbrites-sb_shiftidx-1; - sb_shiftout( (uint32_t)(sb_colors[i].g&0x3FF) | ((uint32_t)(sb_colors[i].r&0x3FF)<<10) | ((uint32_t)(sb_colors[i].b&0x3FF)<<20) ); + sb_shiftout( (uint32_t)sb_colors[i].g | ((uint32_t)sb_colors[i].r<<10) | ((uint32_t)sb_colors[i].b<<20) ); } } |