Rockbox mail archiveSubject: Re: question about sleep timer code
Re: question about sleep timer code
From: alex wallis <alexwallis646_at_googlemail.com>
Date: Wed, 27 May 2009 15:39:05 +0100
> 2009/5/26 alex wallis <alexwallis646_at_googlemail.com>:
>> 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
>> where the code should go in the latest file versions.
>> However, I am not at all sure about what needs to be done in
>> 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
>> 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
>> tracker if that would help. There are just a few lines that have been
>> in since the last sync
>> As far as I can tell, fs#8630 simply moves most of the code relating to
>> 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
>> 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
>> appreciate some advice. Let me no and I can stick the last sync of the
>> up on the tracker.
>> I hope it was ok to post this question to the list.
>> Thanks for any help.
> yes this is the right list for it...
> I can't see anything difficult about syncing that, its all code which
> is just moved from one file to another (like you said), so just put it
> anywhere at the top of settings_list.c.
> I'm pretty sure that the sleep timer doesnt need the rtc, so make sure
> the code is all outside of any #if blocks.
Hi thanks for your reply.
I moved the code into settings_list.c from main_menu.c, and the code
However I am having some problems that I would appreciate some help with.
During the build process I get a message saying that sleep_timer is defined
but not used. Also, when I run the build on target, the sleep_timer option
is no longer voiced, and when I press select on it the player locks up and I
have to hard reset, so guessing I have seriously broken something.
Received on 2009-05-27