Rockbox

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

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#10786 - enable calendar plugin for non-rtc targets

Attached to Project: Rockbox
Opened by Teruaki Kawashima (teru) - Sunday, 15 November 2009, 14:10 GMT+2
Last edited by Alexander Levin (fml2) - Monday, 14 December 2009, 22:58 GMT+2
Task Type Patches
Category Plugins
Status Closed
Assigned To No-one
Player Type All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Private No

Details

with this patch, calendar for non-rtc targets would work as follows (nothing is changed for rtc targets).
1. first time the calendar plugin is started, it selects first day of month of year where month and year is when calendar plugin is build.
2. when the plugin exits, it saves current month and year to config file.
3. next time it is started, it select first day of saved month of year.
   calendar-nonrtc.patch (5.9 KiB)
 apps/plugins/calendar.c |  100 ++++++++++++++++++++++++++++++++++++++++--------
 1 file changed, 84 insertions(+), 16 deletions(-)

This task depends upon

Closed by  Alexander Levin (fml2)
Monday, 14 December 2009, 22:58 GMT+2
Reason for closing:  Accepted
Additional comments about closing:  Committed in r23995.
Comment by Teruaki Kawashima (teru) - Monday, 16 November 2009, 14:43 GMT+2
fix patch.
* info.last_mon and info.last_year need to be surrounded by #if (CONFIG_RTC == 0).
* add change for SOURCES.
   calendar-nonrtc.2.patch (6.4 KiB)
 apps/plugins/SOURCES    |    2 
 apps/plugins/calendar.c |  103 ++++++++++++++++++++++++++++++++++++++++--------
 2 files changed, 88 insertions(+), 17 deletions(-)

Loading...