From 58232586e1ed65fc8a8e382796628aa087b5dc4c Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Thu, 25 Mar 2021 19:58:43 +0100 Subject: uievt added to view --- fw/fe310/test/cell_pdp.c | 2 -- fw/fe310/test/main.c | 3 --- fw/fe310/test/modem.c | 10 +++++----- fw/fe310/test/phone.c | 2 -- fw/fe310/test/status.c | 2 -- fw/fe310/test/wifi.c | 2 -- 6 files changed, 5 insertions(+), 16 deletions(-) (limited to 'fw/fe310/test') diff --git a/fw/fe310/test/cell_pdp.c b/fw/fe310/test/cell_pdp.c index b7580cc..a45adc4 100644 --- a/fw/fe310/test/cell_pdp.c +++ b/fw/fe310/test/cell_pdp.c @@ -10,8 +10,6 @@ #include #include -#include - #include #include #include diff --git a/fw/fe310/test/main.c b/fw/fe310/test/main.c index 37d7a45..a3af24b 100644 --- a/fw/fe310/test/main.c +++ b/fw/fe310/test/main.c @@ -10,8 +10,6 @@ #include #include -#include - #include #include #include @@ -68,7 +66,6 @@ int main() { eos_init(); - app_form_init(); app_root_init(app_home_page); app_status_init(); app_phone_init(); diff --git a/fw/fe310/test/modem.c b/fw/fe310/test/modem.c index 8c3a8a6..ec74482 100644 --- a/fw/fe310/test/modem.c +++ b/fw/fe310/test/modem.c @@ -10,8 +10,6 @@ #include #include -#include - #include #include #include @@ -133,7 +131,7 @@ void app_modem(EVEWindow *window, EVEViewStack *stack) { param->stack = stack; param->cell_dev_handler = eos_cell_get_handler(EOS_CELL_MTYPE_DEV); eve_text_init(¶m->text, &g, 30, 16, 200, root->mem_next, &root->mem_next); - eve_view_init(view, window, modem_draw, modem_touch, param); + eve_view_init(view, window, modem_draw, modem_touch, NULL, param); eve_kbd_set_handler(kbd, key_down, view); eve_window_kbd_attach(window); @@ -153,6 +151,7 @@ void app_modem_close(EVEView *view) { VParam *param = view->param; EVEWindow *window = view->window; EVEWindowRoot *root = (EVEWindowRoot *)window->root; + EVEKbd *kbd = eve_window_kbd(window); EVEViewStack *stack = param->stack; buf[0] = EOS_CELL_MTYPE_DEV | EOS_CELL_MTYPE_RESET; @@ -163,9 +162,10 @@ void app_modem_close(EVEView *view) { eos_net_acquire_for_evt(EOS_EVT_UART | EOS_UART_ETYPE_RX, 0); root->mem_next = param->mem; + eve_window_kbd_detach(window); + eve_kbd_set_handler(kbd, NULL, NULL); + eve_free(param); eve_free(view); - - eve_window_kbd_detach(window); eve_view_destroy(window, stack); } diff --git a/fw/fe310/test/phone.c b/fw/fe310/test/phone.c index 2d33760..de5ed1e 100644 --- a/fw/fe310/test/phone.c +++ b/fw/fe310/test/phone.c @@ -10,8 +10,6 @@ #include #include -#include - #include #include #include diff --git a/fw/fe310/test/status.c b/fw/fe310/test/status.c index 7d3eb73..4413767 100644 --- a/fw/fe310/test/status.c +++ b/fw/fe310/test/status.c @@ -10,8 +10,6 @@ #include #include -#include - #include #include #include diff --git a/fw/fe310/test/wifi.c b/fw/fe310/test/wifi.c index 2ce3e87..d3c61e4 100644 --- a/fw/fe310/test/wifi.c +++ b/fw/fe310/test/wifi.c @@ -10,8 +10,6 @@ #include #include -#include - #include #include #include -- cgit v1.2.3