summaryrefslogtreecommitdiffstatshomepage
path: root/stm/lcd.c
diff options
context:
space:
mode:
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 e8553a69e3..dae4157a46 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);
}
}