summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/eve/eve_text.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2020-08-05 21:31:49 +0200
committerUros Majstorovic <majstor@majstor.org>2020-08-05 21:31:49 +0200
commita35636fc4a55e6b0cfbb5772f7274ee749059836 (patch)
tree18e0d3a42ec63255586eedfd4d253f92d54ae3ae /fw/fe310/eos/eve/eve_text.c
parent3eab89296f3cfec1e8164ac0dbf80cdeda34e27c (diff)
fixed modem test example
Diffstat (limited to 'fw/fe310/eos/eve/eve_text.c')
-rw-r--r--fw/fe310/eos/eve/eve_text.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/fw/fe310/eos/eve/eve_text.c b/fw/fe310/eos/eve/eve_text.c
index 2ad4f6f..9b8dcc0 100644
--- a/fw/fe310/eos/eve/eve_text.c
+++ b/fw/fe310/eos/eve/eve_text.c
@@ -102,7 +102,7 @@ uint8_t eve_text_draw(EVEText *box) {
return box->tag;
}
-int eve_text_putc(EVEText *box, int c) {
+void eve_text_putc(EVEText *box, int c) {
int line_c, line_n;
switch (c) {
@@ -124,7 +124,13 @@ int eve_text_putc(EVEText *box, int c) {
if ((line_c != line_n) && (LINE_IDX_DIFF(line_n, box->line0, box->line_size) == box->h)) scroll1(box);
break;
}
- return EVE_OK;
+}
+
+void eve_text_puts(EVEText *box, char *s) {
+ while (*s) {
+ eve_text_putc(box, *s);
+ s++;
+ }
}
void eve_text_update(EVEText *box) {