Added OLED Display autoscroll during periods of OLED data inactivity (#6546)

* Added OLED Display autoscroll during periods of OLED data inactivity.

* Fixing compile errors

* Feedback from review
This commit is contained in:
XScorpion2 2019-08-25 14:37:55 -05:00 committed by Drashna Jaelre
parent f22c5c17b6
commit 957070a6b5
12 changed files with 72 additions and 46 deletions

View file

@ -1,6 +1,5 @@
#include "process_records.h"
#include "custom_keycodes.h"
#include "timer_utils.h"
#ifdef RGB_ENABLE
#include "custom_rgb.h"
@ -34,7 +33,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record)
{
if (record->event.pressed)
reset_timer = timer_read() + 500;
else if (timer_expired(reset_timer))
else if (timer_expired(timer_read(), reset_timer))
reset_keyboard();
}
return false;