summaryrefslogtreecommitdiffstats
path: root/app/font8x16.c
diff options
context:
space:
mode:
authorfishsoupisgood <github@madingley.org>2020-06-14 10:57:41 +0100
committerfishsoupisgood <github@madingley.org>2020-06-14 10:57:41 +0100
commit9f7eb043eae1b5b0196354c373c6aae987695b86 (patch)
treefcb32e318a20c3bf8d9b4d07e80d2cbcbb105e8a /app/font8x16.c
parent0060468326b7ab0cd07d0d80a84118e7c5bcf348 (diff)
downloadrobs_speedo-9f7eb043eae1b5b0196354c373c6aae987695b86.tar.gz
robs_speedo-9f7eb043eae1b5b0196354c373c6aae987695b86.tar.bz2
robs_speedo-9f7eb043eae1b5b0196354c373c6aae987695b86.zip
tidy
Diffstat (limited to 'app/font8x16.c')
-rw-r--r--app/font8x16.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/font8x16.c b/app/font8x16.c
index 1a396c7..48358f8 100644
--- a/app/font8x16.c
+++ b/app/font8x16.c
@@ -529,15 +529,16 @@ font8x16_put_ch (unsigned ch, unsigned x, unsigned y)
x += SSD1306_WIDTH;
shift = 8 - shift;
- mask =0xff >> shift;
-
+ mask = 0xff >> shift;
+
if (shift)
{
oled_blit_strip (x, x + 8, mask, -shift, font8x16[ch]);
}
shift = y & 7;
- oled_blit_strip (x, x + 8,~mask & (0xff << shift ) , shift, &font8x16[ch][8]);
+ oled_blit_strip (x, x + 8, ~mask & (0xff << shift), shift,
+ &font8x16[ch][8]);
if (shift)
{