Refactor use of matrix_scan_kb (#24200)
This commit is contained in:
@@ -58,7 +58,7 @@ uint8_t detected_shakes = 0;
|
||||
static uint16_t shake_timer;
|
||||
#endif
|
||||
|
||||
void matrix_scan_kb(void) {
|
||||
void housekeeping_task_kb(void) {
|
||||
#ifdef SHAKE_ENABLE
|
||||
// Read the current state of the tilt sensor. It is physically
|
||||
// impossible for both pins to register a low state at the same time.
|
||||
@@ -81,8 +81,6 @@ void matrix_scan_kb(void) {
|
||||
detected_shakes = 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
matrix_scan_user();
|
||||
}
|
||||
|
||||
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
||||
|
||||
@@ -21,13 +21,11 @@
|
||||
#ifndef DRAWING_TOY_MODE
|
||||
static uint16_t led_frame_timer = 0;
|
||||
|
||||
void matrix_scan_kb(void) {
|
||||
void housekeeping_task_kb(void) {
|
||||
if (timer_elapsed(led_frame_timer) > 100) {
|
||||
max7219_message_sign_task(true);
|
||||
led_frame_timer = timer_read();
|
||||
}
|
||||
|
||||
matrix_scan_user();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user