forked from len0rd/rockbox
iaudiox5: Fix red, due to slightly bogus asm
Change-Id: I6ebcda3452d4244b5e2d1a9bbeb9fff9a9456388
This commit is contained in:
parent
ca326896d0
commit
f8bd54d575
2 changed files with 13 additions and 7 deletions
|
@ -60,14 +60,18 @@ bool remote_button_hold(void)
|
|||
int button_read_device(void)
|
||||
{
|
||||
int btn = BUTTON_NONE;
|
||||
#ifndef BOOTLOADER
|
||||
bool hold_button_old;
|
||||
bool remote_hold_button_old;
|
||||
#endif
|
||||
static int prev_data = 0xff;
|
||||
static int last_valid = 0xff;
|
||||
int data;
|
||||
|
||||
/* normal buttons */
|
||||
#ifndef BOOTLOADER
|
||||
hold_button_old = hold_button;
|
||||
#endif
|
||||
hold_button = button_hold();
|
||||
|
||||
#ifndef BOOTLOADER
|
||||
|
@ -114,7 +118,9 @@ int button_read_device(void)
|
|||
/* remote buttons */
|
||||
data = remote_detect() ? adc_scan(ADC_REMOTE) : 0xff;
|
||||
|
||||
#ifndef BOOTLOADER
|
||||
remote_hold_button_old = remote_hold_button;
|
||||
#endif
|
||||
remote_hold_button = data < 0x17;
|
||||
|
||||
#ifndef BOOTLOADER
|
||||
|
|
|
@ -264,7 +264,7 @@ lcd_write_yuv420_lines:
|
|||
lea.l (44, %sp), %sp /* restore registers */
|
||||
rts
|
||||
.yuv_end:
|
||||
.size lcd_write_yuv420_lines, yuv_end - lcd_write_yuv420_lines
|
||||
.size lcd_write_yuv420_lines, .yuv_end - lcd_write_yuv420_lines
|
||||
|
||||
|
||||
/* begin lcd_write_data */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue