diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2011-12-14 09:37:50 +0100 |
---|---|---|
committer | Andreas Eversberg <jolly@eversberg.eu> | 2016-09-25 08:11:48 +0200 |
commit | 450a84eafc36e774045733c092a51aaa63bea862 (patch) | |
tree | 13bceb03c2ad123cc02db4c2ab9f7c445ade031a /src/host/layer23/src/ui/ui.c | |
parent | 39f7b1595c33b7df16294f2a97e3b6a2abbfb170 (diff) |
[HACK] Use display and keypad via L1CTL
This hack is just for demonstration.
Diffstat (limited to 'src/host/layer23/src/ui/ui.c')
-rw-r--r-- | src/host/layer23/src/ui/ui.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 <osmocom/core/select.h> #include <osmocom/bb/ui/ui.h> #include <osmocom/bb/ui/telnet_interface.h> +#include <osmocom/bb/common/l1ctl.h> 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); |