summaryrefslogtreecommitdiff
path: root/lcd.c
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2012-11-14 08:49:02 -0500
committerMichael J. Chudobiak <mjc@avtechpulse.com>2012-11-14 08:49:02 -0500
commit45453184e212d35229e33045fd5e641c85beec68 (patch)
tree13182dd17530e9d92c517932684fc30892f4652c /lcd.c
parent6c0c3baa0a8ba0ddb4dab767c75e10613768995f (diff)
remove fixed-length strings in mode_names
Diffstat (limited to 'lcd.c')
-rw-r--r--lcd.c6
1 files changed, 6 insertions, 0 deletions
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).*/