summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shiftbrite.c2
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) );
}
}