Refactor use of matrix_scan_kb (#24200)

This commit is contained in:
Joel Challis 2024-07-27 06:02:51 +01:00 committed by GitHub
parent 20ae67ba01
commit 02b43b4b60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 20 additions and 164 deletions

View file

@ -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) {

View file

@ -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