Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Paste Description for directhex

Patch to change Gigabeat settings reset behaviour from keeping 'hold' enabled to holding the A button. This more or less makes it impossible to reset settings by accident, as the power & A keys cannot be pressed at the same time accidentally

directhex
Saturday, February 10th, 2007 at 12:28:53pm UTC 

  1. --- main.c.orig 2007-02-10 01:48:38.000000000 +0000
  2. +++ main.c      2007-02-10 12:03:37.000000000 +0000
  3. @@ -82,6 +82,10 @@
  4.  
  5.  #ifdef BUTTON_REC
  6.  #define SETTINGS_RESET BUTTON_REC
  7. +#else
  8. +#if (CONFIG_KEYPAD == GIGABEAT_PAD)
  9. +#define SETTINGS_RESET BUTTON_A
  10. +#endif
  11.  #endif
  12.  
  13.  #ifdef CONFIG_TUNER
  14. @@ -447,9 +451,10 @@
  15.      }
  16.  
  17.  #if defined(SETTINGS_RESET) || (CONFIG_KEYPAD == IPOD_4G_PAD) || \
  18. -    (CONFIG_KEYPAD == IRIVER_H10_PAD) || (CONFIG_KEYPAD == GIGABEAT_PAD)
  19. +    (CONFIG_KEYPAD == IRIVER_H10_PAD)
  20.  #ifdef SETTINGS_RESET
  21. -    /* Reset settings if holding the rec button. */
  22. +    /* Reset settings if holding the reset button. (Rec on Archos,
  23. +       A on Gigabeat) */
  24.      if ((button_status() & SETTINGS_RESET) == SETTINGS_RESET)
  25.  #else
  26.      /* Reset settings if the hold button is turned on */

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right
worth-right