aboutsummaryrefslogtreecommitdiff
path: root/brailleboi.c
diff options
context:
space:
mode:
Diffstat (limited to 'brailleboi.c')
-rw-r--r--brailleboi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/brailleboi.c b/brailleboi.c
index d28a7d1..7957d8b 100644
--- a/brailleboi.c
+++ b/brailleboi.c
@@ -25,9 +25,9 @@ int brailleStop(image_buffer* buf)
int brailleReorganizeBits(int old)
{
//Reorganizes bits because the unicode standard for 8 dotted braille is weird
- int new = (old&0b10000111) |
- (old&0b01110000)>>1 |
- (old&0b00001000)<<3;
+ int new = (old&0x87) | // 0b10000111
+ (old&0x70)>>1 | // 0b01110000
+ (old&0x08)<<3; // 0b00001000
return new;
}