We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 317029c commit 6870fa2Copy full SHA for 6870fa2
keyboards/framework/matrix.c
@@ -261,19 +261,15 @@ static adc10ksample_t read_adc(void) {
261
*/
262
bool handle_idle(void) {
263
bool lid_closed = !readPin(SLEEP_GPIO);
264
+ bool disable_backlight = lid_closed || is_suspended;
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
- }
+ if (lid_closed && !is_suspended) {
+ suspend_power_down();
273
}
+ // suspend_wakeup_init();
+
274
return lid_closed;
275
276
- bool disable_backlight = lid_closed || is_suspended;
277
if (disable_backlight) {
278
led_suspend();
279
} else {
0 commit comments