Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: question about sleep timer code

question about sleep timer code

From: alex wallis <alexwallis646_at_googlemail.com>
Date: Tue, 26 May 2009 23:39:22 +0100

Hi list.
Today I decided to sit down and have a real serious go at getting fs#8630
working with current svn code.
Luckily two of the files were fairly easy to fix, and I was able to work out
where the code should go in the latest file versions.
However, I am not at all sure about what needs to be done in
/apps/menus/main_menu.c
A lot of the code looks broadly the same, however I am finding the code a
little bit hard to read, as there don't seem to be many comments in this
section, and there seem to have been a few changes to main_menu.c since the
last sync of the patch that I have which is for r. 18277.
I would appreciate any advice. I can post the latest sync I do have to the
tracker if that would help. There are just a few lines that have been added
in since the last sync

As far as I can tell, fs#8630 simply moves most of the code relating to the
sleep timer into /apps/settings_list.c out of main_menu.c it also adds an
int into settings.h
the things that I am not sure about when I am resyncing are an if statement
that relates to if a target has an rtc, if I need to stick that in
/apps/settings_list.c as it is bundled in with the sleep timer code.
There are also bits of code that relate to rounding up of values. So I would
appreciate some advice. Let me no and I can stick the last sync of the patch
up on the tracker.
I hope it was ok to post this question to the list.
Thanks for any help.
Alex.
Received on 2009-05-27


Page was last modified "Jan 10 2012" The Rockbox Crew
aaa