diff options
-rw-r--r-- | firmware/drivers/lcd-charcell.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/firmware/drivers/lcd-charcell.c b/firmware/drivers/lcd-charcell.c index f928c19ecd..aa12ef16c0 100644 --- a/firmware/drivers/lcd-charcell.c +++ b/firmware/drivers/lcd-charcell.c | |||
@@ -449,6 +449,17 @@ void lcd_putsxy(int x, int y, const unsigned char *str) | |||
449 | lcd_putsxyofs(x, y, 0, str); | 449 | lcd_putsxyofs(x, y, 0, str); |
450 | } | 450 | } |
451 | 451 | ||
452 | /* Formatting version of lcd_putsxy */ | ||
453 | void lcd_putsxyf(int x, int y, const unsigned char *fmt, ...) | ||
454 | { | ||
455 | va_list ap; | ||
456 | char buf[256]; | ||
457 | va_start(ap, fmt); | ||
458 | vsnprintf(buf, sizeof (buf), fmt, ap); | ||
459 | va_end(ap); | ||
460 | lcd_putsxy(x, y, buf); | ||
461 | } | ||
462 | |||
452 | /*** Line oriented text output ***/ | 463 | /*** Line oriented text output ***/ |
453 | 464 | ||
454 | /* Put a string at a given char position */ | 465 | /* Put a string at a given char position */ |