From 83ba8748bccb7da9ac39f59d26a46cac7909a601 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Sat, 12 Jan 2013 10:00:17 +0100 Subject: [PATCH] tdisp fixes --- include/tdisp/tdisp.h | 4 ++-- src/tdisp/tdisp.c | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/include/tdisp/tdisp.h b/include/tdisp/tdisp.h index 7bf5f69f..88c560ce 100644 --- a/include/tdisp/tdisp.h +++ b/include/tdisp/tdisp.h @@ -93,13 +93,13 @@ void tdispHome(void); void tdispGotoXY(coord_t col, coord_t row); /** - * @brief Store a custom character in the displays RAM + * @brief Store a custom character in RAM * * @note This usually must be done after each power-up since most * LCDs lose their RAM content. * * @param[in] location On which address to store the character (from 0 up to max) - * @param[in] char The character to be stored. This is an array. + * @param[in] charmap The character to be stored. */ void tdispCreateChar(uint8_t location, char *charmap); diff --git a/src/tdisp/tdisp.c b/src/tdisp/tdisp.c index f10b09ee..22de001f 100644 --- a/src/tdisp/tdisp.c +++ b/src/tdisp/tdisp.c @@ -105,10 +105,8 @@ void tdispDrawChar(char c) { } void tdispDrawString(char *s) { - char c; - - while(c = *s++) - tdispDrawChar(c); + while(*s) + tdispDrawChar(*s++); } void tdispDrawCharLocation(coord_t col, coord_t row, char c) {