Rockbox

  • Status Closed
  • Percent Complete
    0%
  • Task Type Patches
  • Category
  • Assigned To No-one
  • Operating System
  • Severity Low
  • Priority Very Low
  • Reported Version
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Rockbox
Opened by Anonymous Submitter - 2003-03-06
Last edited by zagor - 2003-06-04

FS#1032 - autopreset of RTC after power-loss

Sorry for my vault, so #699080 is worthless.

autopreset of time and date after power-loss
This patch is to replace #696904 which was only a first
strike.

With this patch, time/date-values are stored in the
config_block from [0xa1] to [0xa7], which is saved on
the disk.

After a power-loss, the values are read from the
config_block and written to the RTC, so there is
immediately a defined status of the clock.

If the config_block is invalid, the time is generated
from the APPSVERSION-string, which is build at
compile-time.

So:
If you just change the batteries, the last time on disk
will be set,
if you change the CONFIG_VERSION, the time you compiled
your ajbrec.ajz will be set.

ToBeDone: DayLightSaving (DST)
It would be nice to have one key to change between
summer/wintertime.
My idea:
in “General Settings - System - Time/Date” push PLAY to
toggle between summertime/wintertime (the hour-value
will be set also).
All I need is a place to store the value of “DST”. Why
not using
a free bit in the RTC-Config_Block?

…stay in touch…

Closed by  zagor
2003-06-04 14:03
Reason for closing:  Rejected
Additional comments about closing:   Warning: Undefined array key "typography" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 371 Warning: Undefined array key "camelcase" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 407

Logged In: YES
user_id=1157

Much code for little gain. The recent fix that sets the time to
2003-01-01 is good enough. Thanks anyway. :-)

uchk commented on 2003-03-07 00:26

So, now I’m logged in. Sorry.
This patch was submitted by uchk.

Ciao

Project Manager
zagor commented on 2003-06-04 14:03

Much code for little gain. The recent fix that sets the time to
2003-01-01 is good enough. Thanks anyway. :-)

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing