From 193c5df75d3b6d9e3442e42fa26fd8ccc4c5e3aa Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Wed, 24 Dec 2014 11:43:28 -0500 Subject: XWorld: cleanup - Comment keymaps.h - Tie XWORLD_DEBUG into ROCKBOX_HAS_LOGF to ease debugging - Fix up the manual a little bit Change-Id: I12cfb58001199036cd67dbaa27f164e6790a199d Reviewed-on: http://gerrit.rockbox.org/1084 Reviewed-by: Michael Giacomelli --- apps/plugins/xworld/sys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/plugins/xworld/sys.c') diff --git a/apps/plugins/xworld/sys.c b/apps/plugins/xworld/sys.c index 0af13efd11..14c928f067 100644 --- a/apps/plugins/xworld/sys.c +++ b/apps/plugins/xworld/sys.c @@ -787,13 +787,13 @@ void sys_sleep(struct System* sys, uint32_t duration) { (void) sys; /* duration is in ms */ - rb->sleep(duration / 10); + rb->sleep(duration / (1000/HZ)); } uint32_t sys_getTimeStamp(struct System* sys) { (void) sys; - return (uint32_t) (*rb->current_tick) * 10; + return (uint32_t) (*rb->current_tick * (1000/HZ)); } static int16_t rb_soundbuf [MAX_SOUNDBUF_SIZE] IBSS_ATTR; -- cgit v1.2.3