From 9f7eb043eae1b5b0196354c373c6aae987695b86 Mon Sep 17 00:00:00 2001 From: fishsoupisgood Date: Sun, 14 Jun 2020 10:57:41 +0100 Subject: tidy --- app/font8x16.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'app/font8x16.c') 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) { -- cgit v1.2.3