Sleeptimer settings [dev?]

Ideas and dreaming will go this forum
Post Reply

lexi
Posts: 2
Joined: Thu Apr 19, 2012 11:13 am

Sleeptimer settings [dev?]

Post by lexi » Thu Apr 19, 2012 11:19 am

Hi,

is there a way to change the sleeptimer settings?
The 30/60/... minutes settings are too long for me. I would prefer to set the sleep timer for example to 10/20/30/... minutes.

Is there a way to achieve this? Any developers here that can help me finding the constants in the firmware?

thanks!

sbav1
Official SamyGO Developer
Posts: 374
Joined: Fri Jan 15, 2010 10:20 am

Re: Sleeptimer settings [dev?]

Post by sbav1 » Sun Apr 22, 2012 12:54 pm

lexi wrote:Any developers here that can help me finding the constants in the firmware?
Default values (in seconds, from 1800 .. 10800) are hard-coded in CViewerNormal::t_SetSleep() / _ZN13CViewerNormal10t_SetSleepEv . They are loaded to R6 register (LDREQ R6, ...) and then

Code: Select all

   MOV R1, R6
   LDR R0, =g_AppTV
   BL _ZN4TCTv13SetSleepTimerEi ; TCTv::SetSleepTimer(int)

lexi
Posts: 2
Joined: Thu Apr 19, 2012 11:13 am

Re: Sleeptimer settings [dev?]

Post by lexi » Mon Apr 23, 2012 8:42 am

Hello sbav1,

thanks for the fast research ;-)
I guess now i don't have no more excuses and I'll have to set up a development environment.

Post Reply

Return to “[B] Brainstorm”