diff options
author | Markus Braun <markus.braun@krawel.de> | 2002-08-30 11:14:52 +0000 |
---|---|---|
committer | Markus Braun <markus.braun@krawel.de> | 2002-08-30 11:14:52 +0000 |
commit | e6c7c841b92fd9632b9d860f3eb1f2c944b49b61 (patch) | |
tree | 4d9ca40d00573b38c479e7a26a7071356c32fcc3 | |
parent | 6131a3cc0d1cd7ee7118d9ec8cab8575c7bd7058 (diff) |
Corrected bit masks for time setting menu.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2080 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/settings_menu.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/settings_menu.c b/apps/settings_menu.c index 977c5cd2d0..7cbfc18a8c 100644 --- a/apps/settings_menu.c +++ b/apps/settings_menu.c @@ -129,11 +129,11 @@ static Menu timedate_set(void) timedate[4] = rtc_read(0x06); /* month */ timedate[5] = rtc_read(0x05); /* day */ /* day of week not read, calculated */ - timedate[0] = ((timedate[0] & 0x70) >> 4) * 10 + (timedate[0] & 0x0f); /* hour */ - timedate[1] = ((timedate[1] & 0xf0) >> 4) * 10 + (timedate[1] & 0x0f); /* minute */ - timedate[2] = ((timedate[2] & 0x30) >> 4) * 10 + (timedate[2] & 0x0f); /* second */ - timedate[3] = ((timedate[3] & 0x30) >> 4) * 10 + (timedate[3] & 0x0f); /* year */ - timedate[4] = ((timedate[4] & 0x30) >> 4) * 10 + (timedate[4] & 0x0f); /* month */ + timedate[0] = ((timedate[0] & 0x30) >> 4) * 10 + (timedate[0] & 0x0f); /* hour */ + timedate[1] = ((timedate[1] & 0x70) >> 4) * 10 + (timedate[1] & 0x0f); /* minute */ + timedate[2] = ((timedate[2] & 0x70) >> 4) * 10 + (timedate[2] & 0x0f); /* second */ + timedate[3] = ((timedate[3] & 0xf0) >> 4) * 10 + (timedate[3] & 0x0f); /* year */ + timedate[4] = ((timedate[4] & 0x10) >> 4) * 10 + (timedate[4] & 0x0f); /* month */ timedate[5] = ((timedate[5] & 0x30) >> 4) * 10 + (timedate[5] & 0x0f); /* day */ set_time("[Set time/date]",timedate); |