summaryrefslogtreecommitdiff
path: root/stm/lcd.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-01-26 17:41:01 +0000
committerDamien George <damien.p.george@gmail.com>2014-01-26 17:41:01 +0000
commit75abee206d1a575aa98a486d043c94d64df432c1 (patch)
treef5842abbd035f84abd7cf758c8b4bb6efdfca17c /stm/lcd.c
parent8fcf7b858d28acb098ca4ee85860ca4ed88f0207 (diff)
stm: USB host mode working! Restructure stm library directories.
Diffstat (limited to 'stm/lcd.c')
-rw-r--r--stm/lcd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/stm/lcd.c b/stm/lcd.c
index e8553a69e..dae4157a4 100644
--- a/stm/lcd.c
+++ b/stm/lcd.c
@@ -324,6 +324,12 @@ void lcd_print_strn(const char *str, unsigned int len) {
}
if (*str == '\n') {
lcd_next_line = 1;
+ } else if (*str == '\r') {
+ lcd_column = 0;
+ } else if (*str == '\b') {
+ if (lcd_column > 0) {
+ lcd_column--;
+ }
} else if (lcd_column >= LCD_BUF_W) {
lcd_next_line = 1;
str -= 1;
@@ -359,6 +365,6 @@ void lcd_print_strn(const char *str, unsigned int len) {
}
if (did_new_line) {
- sys_tick_delay_ms(200);
+ sys_tick_delay_ms(50);
}
}