/* Copyright 2021 IsaacDynamo * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #include "white.h" void suspend_power_down_kb(void) { // Suspend backlight rgb_matrix_set_suspend_state(true); suspend_power_down_user(); } /// TODO: Clean-up workaround /// Currently the suspend_wakeup_init_kb() has issues. See https://github.com/SonixQMK/qmk_firmware/issues/80 /// A workaround is to use housekeeping_task_kb() instead. void housekeeping_task_kb(void) { // Restore backlight rgb_matrix_set_suspend_state(false); housekeeping_task_user(); }