From 450a84eafc36e774045733c092a51aaa63bea862 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Wed, 14 Dec 2011 09:37:50 +0100 Subject: [HACK] Use display and keypad via L1CTL This hack is just for demonstration. --- src/host/layer23/src/ui/ui.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/host/layer23/src/ui') diff --git a/src/host/layer23/src/ui/ui.c b/src/host/layer23/src/ui/ui.c index 5545a5e7..5956b233 100644 --- a/src/host/layer23/src/ui/ui.c +++ b/src/host/layer23/src/ui/ui.c @@ -25,6 +25,7 @@ #include #include #include +#include static char *ui_center(const char *text) { @@ -101,6 +102,12 @@ int ui_flush(struct ui_inst *ui) ui_telnet_puts(ui, frame); for (i = 0; i < UI_ROWS; i++) { sprintf(line, "|%s|\r\n", ui->buffer + (UI_COLS + 1) * i); + { + // HACK + struct gsm_ui *gui = container_of(ui, struct gsm_ui, ui); + struct osmocom_ms *ms = container_of(gui, struct osmocom_ms, gui); + l1ctl_tx_display_req(ms, 0, i, ui->buffer + (UI_COLS + 1) * i); + } ui_telnet_puts(ui, line); } ui_telnet_puts(ui, frame); -- cgit v1.2.3