From 45453184e212d35229e33045fd5e641c85beec68 Mon Sep 17 00:00:00 2001 From: "Michael J. Chudobiak" Date: Wed, 14 Nov 2012 08:49:02 -0500 Subject: remove fixed-length strings in mode_names --- lcd.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lcd.c') diff --git a/lcd.c b/lcd.c index 24b8dc1..d98c0b0 100644 --- a/lcd.c +++ b/lcd.c @@ -210,6 +210,12 @@ void LCD_write_padded_spaces(int row, int col, char *LCD_string, int width) } +void LCD_write_padded_to_end_of_line(int row, int col, char *LCD_string) +{ + LCD_write_padded_spaces (row, col, LCD_string, LCD_cols - col - strlen (LCD_string)); +} + + static void LCD_make_custom_chars() { /* define custom LCD characters 2 and 3 (up arrow and down arrow).*/ -- cgit