Browse Source

Allow a larger int for the idle timeout for urbanvanilla keymap (#19738)

pull/20321/head
Phil Hollenback 1 year ago
committed by GitHub
parent
commit
162d6156d3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      keyboards/massdrop/alt/keymaps/urbanvanilla/keymap.c

+ 2
- 2
keyboards/massdrop/alt/keymaps/urbanvanilla/keymap.c View File

@ -49,7 +49,7 @@ uint8_t currentWPM;
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
static uint32_t key_timer;
idle_timer = timer_read();
idle_timer = timer_read32();
switch (keycode) {
@ -146,7 +146,7 @@ idle_timer = timer_read();
void matrix_scan_user(void) {
//custom idle rbg switch off function
if (timer_elapsed(idle_timer) > IDLE_TIMER_DURATION) {
if (timer_elapsed32(idle_timer) > IDLE_TIMER_DURATION) {
idle_timer = 0;
timer_clear();
rgbkeyIdle = true;


Loading…
Cancel
Save