Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  [solved] Cowon D2 with dead touchscreen: how to set time and date?
« previous next »
  • Print
Pages: [1]

Author Topic: [solved] Cowon D2 with dead touchscreen: how to set time and date?  (Read 1322 times)

Offline orgone

  • Member
  • *
  • Posts: 1
[solved] Cowon D2 with dead touchscreen: how to set time and date?
« on: March 12, 2012, 10:12:55 AM »
is it able to set time and date on cowon d2 with no touchscreen available?
am I right that the source code modifying is the only way?

Post Merge: March 12, 2012, 11:50:35 AM
source modifying is found to be not hard in this case :)

Code: [Select]
$ git diff screens.c 
diff --git a/apps/screens.c b/apps/screens.c
index 866ec58..f25010e 100644
--- a/apps/screens.c
+++ b/apps/screens.c
@@ -559,8 +559,10 @@ bool set_time_screen(const char* title, struct tm *tm)
                 break;
 
             case ACTION_STD_CANCEL:
-                done = true;
-                tm->tm_year = -1;
+                cursorpos = clamp_value_wrap(++cursorpos, 5, 0);
+                say_time(cursorpos, tm);
+                // done = true;
+                // tm->tm_year = -1;
                 break;
 
             default:
« Last Edit: March 12, 2012, 11:51:02 AM by orgone »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  [solved] Cowon D2 with dead touchscreen: how to set time and date?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.046 seconds with 15 queries.