summaryrefslogtreecommitdiffstats
path: root/power-660.c
diff options
context:
space:
mode:
Diffstat (limited to 'power-660.c')
-rw-r--r--power-660.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/power-660.c b/power-660.c
index 56c5d7c..b2870bd 100644
--- a/power-660.c
+++ b/power-660.c
@@ -51,7 +51,6 @@
#define MIN_VAL(X, Y) ((X > Y) ? (Y) : (X))
-static int display_hint_sent;
static int video_encode_hint_sent;
static int cam_preview_hint_sent;
@@ -139,17 +138,13 @@ int set_interactive_override(int on) {
memcpy(resource_values, res, MIN_VAL(sizeof(resource_values), sizeof(res)));
num_resources = sizeof(res) / sizeof(res[0]);
}
- if (!display_hint_sent) {
- perform_hint_action(DISPLAY_STATE_HINT_ID, resource_values, num_resources);
- display_hint_sent = 1;
- }
+ perform_hint_action(DISPLAY_STATE_HINT_ID, resource_values, num_resources);
}
} else {
/* Display on. */
if (is_interactive_governor(governor)) {
undo_hint_action(DISPLAY_STATE_HINT_ID);
- display_hint_sent = 0;
}
}
return HINT_HANDLED;