Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#10390 - Make get_time on non-RTC simulators work similar to targets

Attached to Project: Rockbox
Opened by Alexander Levin (fml2) - Sunday, 28 June 2009, 18:24 GMT+2
Last edited by Alexander Levin (fml2) - Monday, 29 June 2009, 16:32 GMT+2
Task Type Patches
Category Simulator
Status Closed
Assigned To No-one
Player Type All players
Severity Low
Priority Normal
Reported Version Version 3.3
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Private No

Details

As of now (r21544), the get_time function does return the real time for non-RTC simulators. The patch makes the behaviour more similar to real targets, i.e. Jan 1, 1970, 00:00:00 is always returned.

Also, some comments were added to better understand the #ifdef hell.
   time_sim_nortc.diff (2 KiB)
 firmware/common/timefuncs.c |   48 +++++++++++++++++++++++++++-----------------
 1 file changed, 30 insertions(+), 18 deletions(-)

This task depends upon

Closed by  Alexander Levin (fml2)
Monday, 29 June 2009, 16:32 GMT+2
Reason for closing:  Accepted
Additional comments about closing:  Committed in r21561.

Loading...