summaryrefslogtreecommitdiff
path: root/firmware/target/mips/ingenic_x1000/fiiom3k/button-fiiom3k.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/mips/ingenic_x1000/fiiom3k/button-fiiom3k.c')
-rw-r--r--firmware/target/mips/ingenic_x1000/fiiom3k/button-fiiom3k.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/mips/ingenic_x1000/fiiom3k/button-fiiom3k.c b/firmware/target/mips/ingenic_x1000/fiiom3k/button-fiiom3k.c
index b5193152a2..85ccc5cf65 100644
--- a/firmware/target/mips/ingenic_x1000/fiiom3k/button-fiiom3k.c
+++ b/firmware/target/mips/ingenic_x1000/fiiom3k/button-fiiom3k.c
@@ -22,6 +22,7 @@
22#include "button.h" 22#include "button.h"
23#include "kernel.h" 23#include "kernel.h"
24#include "backlight.h" 24#include "backlight.h"
25#include "powermgmt.h"
25#include "panic.h" 26#include "panic.h"
26#include "axp173.h" 27#include "axp173.h"
27#include "gpio-x1000.h" 28#include "gpio-x1000.h"
@@ -313,6 +314,7 @@ static void ft_step_state(uint32_t t, int evt, int tx, int ty)
313 /* Poke the backlight */ 314 /* Poke the backlight */
314 backlight_on(); 315 backlight_on();
315 buttonlight_on(); 316 buttonlight_on();
317 reset_poweroff_timer();
316 318
317 fsm.orig_x = fsm.cur_x; 319 fsm.orig_x = fsm.cur_x;
318 fsm.orig_y = fsm.cur_y; 320 fsm.orig_y = fsm.cur_y;
@@ -481,7 +483,7 @@ int button_read_device(void)
481 return r; 483 return r;
482} 484}
483 485
484bool headphones_inserted() 486bool headphones_inserted(void)
485{ 487{
486 return hp_detect_reg & 0x40 ? true : false; 488 return hp_detect_reg & 0x40 ? true : false;
487} 489}