summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-02-22 10:25:02 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-02-22 10:25:02 +0000
commit233316914eeaaae7ccc7da53fdb0d239eabbf525 (patch)
tree08372ecafd0992a204fbeca95e4e5f0a00e6be7e /firmware
parent355f38d30a6e652fccaa2ec0584ed7b63b86b07e (diff)
downloadrockbox-233316914eeaaae7ccc7da53fdb0d239eabbf525.tar.gz
rockbox-233316914eeaaae7ccc7da53fdb0d239eabbf525.tar.bz2
rockbox-233316914eeaaae7ccc7da53fdb0d239eabbf525.zip
Clip+: show the same real time in OF and rockbox
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24859 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/drivers/rtc/rtc_as3514.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/drivers/rtc/rtc_as3514.c b/firmware/drivers/rtc/rtc_as3514.c
index 43368d2dd1..8597d138fb 100644
--- a/firmware/drivers/rtc/rtc_as3514.c
+++ b/firmware/drivers/rtc/rtc_as3514.c
@@ -24,9 +24,11 @@
#include "as3514.h"
#include "ascodec.h"
-/* AMS Sansas start counting from Jan 1st 1970 instead of 1980 */
+/* AMS Sansas start counting from Jan 1st 1970 instead of 1980 (not as3525v2) */
#if (CONFIG_CPU==AS3525)
#define SECS_ADJUST 315532800 /* seconds between 1970-1-1 and 1980-1-1 */
+#elif (CONFIG_CPU==AS3525v2)
+#define SECS_ADJUST 315532800 - (2*365*24*3600) - 26*(24*3600) + 7*3600 + 25*60
#else
#define SECS_ADJUST 0
#endif