summaryrefslogtreecommitdiff
path: root/apps/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/main.c')
-rw-r--r--apps/main.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/apps/main.c b/apps/main.c
index d473e66731..4e66a851f1 100644
--- a/apps/main.c
+++ b/apps/main.c
@@ -120,16 +120,6 @@
120const char appsversion[]=APPSVERSION; 120const char appsversion[]=APPSVERSION;
121 121
122static void init(void); 122static void init(void);
123
124static void fourhertz_tick_task(void)
125{
126 static long last_fire = 0;
127 if (TIME_AFTER(current_tick, last_fire+HZ/4))
128 {
129 queue_post(&button_queue, SYS_FOURHERTZ, 0);
130 last_fire = current_tick;
131 }
132}
133 123
134#ifdef SIMULATOR 124#ifdef SIMULATOR
135void app_main(void) 125void app_main(void)
@@ -148,7 +138,6 @@ static void app_main(void)
148#ifdef HAVE_TOUCHSCREEN 138#ifdef HAVE_TOUCHSCREEN
149 touchscreen_set_mode(TOUCHSCREEN_BUTTON); 139 touchscreen_set_mode(TOUCHSCREEN_BUTTON);
150#endif 140#endif
151 tick_add_task(fourhertz_tick_task);
152 viewportmanager_set_statusbar(true); 141 viewportmanager_set_statusbar(true);
153 add_event(GUI_EVENT_STATUSBAR_TOGGLE, false, 142 add_event(GUI_EVENT_STATUSBAR_TOGGLE, false,
154 viewportmanager_statusbar_changed); 143 viewportmanager_statusbar_changed);