summaryrefslogtreecommitdiffstats
path: root/apps/plugins/pdbox/PDa/src/m_sched.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/pdbox/PDa/src/m_sched.c')
-rw-r--r--apps/plugins/pdbox/PDa/src/m_sched.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/pdbox/PDa/src/m_sched.c b/apps/plugins/pdbox/PDa/src/m_sched.c
index 6500fc2038..88e639d39e 100644
--- a/apps/plugins/pdbox/PDa/src/m_sched.c
+++ b/apps/plugins/pdbox/PDa/src/m_sched.c
@@ -399,7 +399,9 @@ static
#endif
void sched_tick(t_time next_sys_time)
{
+#ifndef ROCKBOX
int countdown = 5000;
+#endif
while (clock_setlist && clock_setlist->c_settime < next_sys_time)
{
t_clock *c = clock_setlist;
@@ -407,13 +409,13 @@ void sched_tick(t_time next_sys_time)
clock_unset(clock_setlist);
outlet_setstacklim();
(*c->c_fn)(c->c_owner);
+#ifndef ROCKBOX
if (!countdown--)
{
countdown = 5000;
-#ifndef ROCKBOX
sys_pollgui();
-#endif
}
+#endif
if (sys_quit)
return;
}