diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-08-28 23:12:11 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-08-28 23:12:11 +0000 |
commit | bc4b5366cd2863904abae103f0e198dd6952e438 (patch) | |
tree | 45bf8ec407edb1dfea9a7bb00568283f02291e1f /firmware/target/arm/tms320dm320/creative-zvm/pic-creativezvm.c | |
parent | 71b2d2811b8cd8747f81a2e69e07aaa72a56b1c2 (diff) | |
download | rockbox-bc4b5366cd2863904abae103f0e198dd6952e438.tar.gz rockbox-bc4b5366cd2863904abae103f0e198dd6952e438.zip |
firmware/ : use lcd_putsf() (only in debug code)
ata-meg-fx: use unsigned line number, so % (modulo) is optimized
tcc7*: use proper printf format and remove casting
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27935 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/tms320dm320/creative-zvm/pic-creativezvm.c')
-rw-r--r-- | firmware/target/arm/tms320dm320/creative-zvm/pic-creativezvm.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/firmware/target/arm/tms320dm320/creative-zvm/pic-creativezvm.c b/firmware/target/arm/tms320dm320/creative-zvm/pic-creativezvm.c index d910eeb3b6..ab5462fa90 100644 --- a/firmware/target/arm/tms320dm320/creative-zvm/pic-creativezvm.c +++ b/firmware/target/arm/tms320dm320/creative-zvm/pic-creativezvm.c | |||
@@ -255,18 +255,14 @@ void GIO0(void) | |||
255 | break; | 255 | break; |
256 | } | 256 | } |
257 | #ifdef BUTTON_DEBUG | 257 | #ifdef BUTTON_DEBUG |
258 | unsigned char weergvn[10]; | ||
259 | #ifdef BOOTLOADER | 258 | #ifdef BOOTLOADER |
260 | lcd_set_foreground((sw ? LCD_RGBPACK(255,0,0) : LCD_RGBPACK(0,255,0) )); | 259 | lcd_set_foreground((sw ? LCD_RGBPACK(255,0,0) : LCD_RGBPACK(0,255,0) )); |
261 | #endif | 260 | #endif |
262 | snprintf(weergvn, sizeof(char)*10, "%x", | 261 | lcd_putsxyf(LCD_WIDTH-SYSFONT_WIDTH*10, LCD_HEIGHT-SYSFONT_HEIGHT*10, "%x", |
263 | (unsigned int)((msg[3] << 24) | | 262 | (unsigned int)((msg[3] << 24) | |
264 | (msg[2] << 16) | (msg[1] << 8) | msg[0])); | 263 | (msg[2] << 16) | (msg[1] << 8) | msg[0])); |
265 | lcd_putsxy(LCD_WIDTH-SYSFONT_WIDTH*10, LCD_HEIGHT-SYSFONT_HEIGHT*10, | 264 | lcd_putsxy(LCD_WIDTH-SYSFONT_WIDTH*10, LCD_HEIGHT-SYSFONT_HEIGHT*7, "%x", |
266 | weergvn); | 265 | btn); |
267 | snprintf(weergvn, sizeof(char)*10, "%x", btn); | ||
268 | lcd_putsxy(LCD_WIDTH-SYSFONT_WIDTH*10, LCD_HEIGHT-SYSFONT_HEIGHT*7, | ||
269 | weergvn); | ||
270 | #ifdef BOOTLOADER | 266 | #ifdef BOOTLOADER |
271 | lcd_set_foreground(LCD_BLACK); | 267 | lcd_set_foreground(LCD_BLACK); |
272 | #endif | 268 | #endif |