forked from len0rd/rockbox
Clipv1: cosmetics
Move code not defined for bootloader under a single preprocessor check git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26219 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
59462a8bf8
commit
26c8eebe4f
1 changed files with 5 additions and 5 deletions
|
@ -23,7 +23,7 @@
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
#include "button-target.h"
|
#include "button-target.h"
|
||||||
#include "as3525.h"
|
#include "as3525.h"
|
||||||
#ifndef BOOTLOADER
|
#ifndef BOOTLOADER /* backlight on hold handling */
|
||||||
#include "backlight.h"
|
#include "backlight.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -138,13 +138,13 @@ int button_read_device(void)
|
||||||
|
|
||||||
bool button_hold(void)
|
bool button_hold(void)
|
||||||
{
|
{
|
||||||
#ifndef BOOTLOADER
|
|
||||||
static bool hold_button_old = false;
|
|
||||||
#endif
|
|
||||||
bool hold_button = (GPIOA_PIN(3) != 0);
|
bool hold_button = (GPIOA_PIN(3) != 0);
|
||||||
|
|
||||||
#ifndef BOOTLOADER
|
#ifndef BOOTLOADER
|
||||||
/* light handling */
|
/* backlight handling */
|
||||||
|
|
||||||
|
static bool hold_button_old = false;
|
||||||
|
|
||||||
if (hold_button != hold_button_old)
|
if (hold_button != hold_button_old)
|
||||||
{
|
{
|
||||||
hold_button_old = hold_button;
|
hold_button_old = hold_button;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue