Allow to disable screen sleep
This commit is contained in:
parent
5e925b2cd4
commit
805cffffcd
|
@ -42,3 +42,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#define RGBLIGHT_HUE_STEP 10
|
||||
#define RGBLIGHT_SAT_STEP 17
|
||||
#define RGBLIGHT_VAL_STEP 17
|
||||
|
||||
// #define SCREEN_SLEEP
|
|
@ -42,3 +42,5 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
#define RGBLIGHT_HUE_STEP 10
|
||||
#define RGBLIGHT_SAT_STEP 17
|
||||
#define RGBLIGHT_VAL_STEP 17
|
||||
|
||||
// #define SCREEN_SLEEP
|
||||
|
|
|
@ -331,9 +331,11 @@ void iota_gfx_task(void) {
|
|||
force_dirty = false;
|
||||
}
|
||||
|
||||
#ifdef SCREEN_SLEEP
|
||||
if (timer_elapsed(last_flush) > ScreenOffInterval) {
|
||||
iota_gfx_off();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
bool process_record_gfx(uint16_t keycode, keyrecord_t *record) {
|
||||
|
|
Loading…
Reference in New Issue