Skip to content

Commit 6870fa2

Browse files
committed
fixup! fl16: Use core powerdown and wakeup function
1 parent 317029c commit 6870fa2

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

keyboards/framework/matrix.c

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -261,19 +261,15 @@ static adc10ksample_t read_adc(void) {
261261
*/
262262
bool handle_idle(void) {
263263
bool lid_closed = !readPin(SLEEP_GPIO);
264+
bool disable_backlight = lid_closed || is_suspended;
264265

265-
// If lid state is different from current suspend state,
266-
// adjust suspend state
267-
if (is_suspended != lid_closed) {
268-
if (lid_closed) {
269-
suspend_power_down();
270-
} else {
271-
suspend_wakeup_init();
272-
}
266+
if (lid_closed && !is_suspended) {
267+
suspend_power_down();
273268
}
269+
// suspend_wakeup_init();
270+
274271
return lid_closed;
275272

276-
bool disable_backlight = lid_closed || is_suspended;
277273
if (disable_backlight) {
278274
led_suspend();
279275
} else {

0 commit comments

Comments
 (0)