summaryrefslogtreecommitdiff
path: root/firmware/powermgmt.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/powermgmt.c')
-rw-r--r--firmware/powermgmt.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/firmware/powermgmt.c b/firmware/powermgmt.c
index ca68fb168a..50b734bbbd 100644
--- a/firmware/powermgmt.c
+++ b/firmware/powermgmt.c
@@ -59,10 +59,8 @@
59#include <time.h> 59#include <time.h>
60#endif 60#endif
61 61
62#ifdef IAUDIO_X5 62#if defined(IAUDIO_X5) && !defined (SIMULATOR)
63#ifndef SIMULATOR 63#include "pcf50606.h"
64extern void pcf50606_reset_timeout(void);
65#endif
66#endif 64#endif
67 65
68/* 66/*
@@ -1033,13 +1031,11 @@ void cancel_shutdown(void)
1033{ 1031{
1034 logf("sys_cancel_shutdown()"); 1032 logf("sys_cancel_shutdown()");
1035 1033
1036#ifdef IAUDIO_X5 1034#if defined(IAUDIO_X5) && !defined (SIMULATOR)
1037#ifndef SIMULATOR
1038 /* TODO: Move some things to target/ tree */ 1035 /* TODO: Move some things to target/ tree */
1039 if (shutdown_timeout) 1036 if (shutdown_timeout)
1040 pcf50606_reset_timeout(); 1037 pcf50606_reset_timeout();
1041#endif 1038#endif
1042#endif
1043 1039
1044 shutdown_timeout = 0; 1040 shutdown_timeout = 0;
1045} 1041}
@@ -1076,10 +1072,8 @@ void shutdown_hw(void)
1076 backlight_set_fade_out(0); 1072 backlight_set_fade_out(0);
1077#endif 1073#endif
1078 backlight_off(); 1074 backlight_off();
1079#endif /* IAUDIO_X5 */
1080#ifndef IAUDIO_X5
1081 lcd_set_contrast(0); 1075 lcd_set_contrast(0);
1082#endif 1076#endif /* IAUDIO_X5 */
1083#ifdef HAVE_REMOTE_LCD 1077#ifdef HAVE_REMOTE_LCD
1084 remote_backlight_off(); 1078 remote_backlight_off();
1085 lcd_remote_set_contrast(0); 1079 lcd_remote_set_contrast(0);