From c0b2ef5e8cc8239fc3ce16f42965b5dafbc923a7 Mon Sep 17 00:00:00 2001 From: Tectu Date: Wed, 18 Jul 2012 03:28:23 +0200 Subject: [PATCH] fix --- glcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glcd.c b/glcd.c index 309470c4..af502532 100644 --- a/glcd.c +++ b/glcd.c @@ -372,7 +372,7 @@ uint16_t lcdDrawChar(uint16_t cx, uint16_t cy, char c, font_t font, uint16_t col /* WARNING: No boundary checks! Unpredictable behaviour if text exceeds boundary */ void lcdDrawString(uint16_t x, uint16_t y, const char *str, font_t font, uint16_t color, uint16_t bkcolor, bool_t tpText) { - uint16_t cx=x, cy=y; + uint16_t cx = x, cy = y; while (*str) { cx += lcdDrawChar(cx, cy, *str++, font, color, bkcolor, tpText);