From 58fc279d2674b5d56fed6772f82cdf1e431088f1 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Sat, 28 Jul 2007 08:12:05 +0000 Subject: Scroll on main and remote with a single thread. Change the way system messages are defined before running out is an issue (which requires a full update of rockbox on the player). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14035 a1c6a512-1295-4272-9138-f99709370657 --- firmware/target/coldfire/iaudio/lcd-remote-iaudio.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'firmware/target/coldfire/iaudio/lcd-remote-iaudio.c') diff --git a/firmware/target/coldfire/iaudio/lcd-remote-iaudio.c b/firmware/target/coldfire/iaudio/lcd-remote-iaudio.c index 939f7347c4..9940017dd9 100644 --- a/firmware/target/coldfire/iaudio/lcd-remote-iaudio.c +++ b/firmware/target/coldfire/iaudio/lcd-remote-iaudio.c @@ -18,8 +18,9 @@ ****************************************************************************/ #include "config.h" #include "system.h" -#include "kernel.h" +#include "file.h" #include "lcd-remote.h" +#include "scroll_engine.h" /* The LCD in the iAudio M3/M5/X5 remote control is a Tomato LSI 0350 */ @@ -397,7 +398,6 @@ static void remote_tick(void) { static bool last_status = false; static int countdown = 0; - static int init_delay = 0; bool current_status; current_status = remote_detect(); @@ -416,20 +416,16 @@ static void remote_tick(void) if (current_status) { - if (!(countdown % 8)) + if (!(countdown % 48)) { - if (--init_delay <= 0) - { - queue_post(&remote_scroll_queue, REMOTE_INIT_LCD, 0); - init_delay = 6; - } + queue_broadcast(SYS_REMOTE_PLUGGED, 0); } } else { if (countdown == 0) { - queue_post(&remote_scroll_queue, REMOTE_DEINIT_LCD, 0); + queue_broadcast(SYS_REMOTE_UNPLUGGED, 0); } } } -- cgit v1.2.3