From fa67a82177187a7ae80dd2711791fe0a1fd1827a Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Thu, 18 Oct 2007 00:44:27 +0300 Subject: [PATCH] Add one more step to init --- src/mapper.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mapper.c b/src/mapper.c index 82efa05..f32706e 100644 --- a/src/mapper.c +++ b/src/mapper.c @@ -102,6 +102,7 @@ enum { MAPPER_INIT_VOICE, MAPPER_INIT_DB, MAPPER_INIT_UI, + MAPPER_INIT_GOTO, MAPPER_INIT_DONE } mapper_init_state; @@ -245,6 +246,11 @@ switch (mis) { break; case MAPPER_INIT_UI: mapper_ui_init(); + mis=MAPPER_INIT_GOTO; + break; + case MAPPER_INIT_GOTO: + if (map_goto_position(&_home)==FALSE) + g_printf("Home is not set\n"); mis=MAPPER_INIT_DONE; break; case MAPPER_INIT_DONE: -- 2.39.5