aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/hotdox76v2
diff options
context:
space:
mode:
authorJoel Challis2024-07-27 07:02:51 +0200
committerGitHub2024-07-27 07:02:51 +0200
commit02b43b4b603a426627c63e7bd0e48de8e88028e6 (patch)
tree4cc018bc3891aa66d180611b23d1339771972022 /keyboards/hotdox76v2
parent20ae67ba01c4fd934ae73476a17c8e7d36c821d0 (diff)
Refactor use of `matrix_scan_kb` (#24200)
Diffstat (limited to 'keyboards/hotdox76v2')
-rw-r--r--keyboards/hotdox76v2/hotdox76v2.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/keyboards/hotdox76v2/hotdox76v2.c b/keyboards/hotdox76v2/hotdox76v2.c
index 57ed81b128..3ee5894107 100644
--- a/keyboards/hotdox76v2/hotdox76v2.c
+++ b/keyboards/hotdox76v2/hotdox76v2.c
@@ -248,13 +248,6 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
return true;
}
-void matrix_scan_kb(void) {
- if (!is_oled_on()) {
- m2s.cur_alp_index = 1;
- }
- matrix_scan_user();
-}
-
void user_sync_alpa_slave_handler(uint8_t in_buflen, const void *in_data, uint8_t out_buflen, void *out_data) {
const master_to_slave_t *m2s_p = (const master_to_slave_t *)in_data;
s2m.cur_alp_index = m2s_p->cur_alp_index;
@@ -270,6 +263,9 @@ void keyboard_post_init_kb(void) {
void housekeeping_task_kb(void) {
if (is_keyboard_master()) {
+ if (!is_oled_on()) {
+ m2s.cur_alp_index = 1;
+ }
// Interact with slave every 200ms
static uint32_t last_sync = 0;
if (timer_elapsed32(last_sync) > 200) {
@@ -281,7 +277,6 @@ void housekeeping_task_kb(void) {
}
}
}
- housekeeping_task_user();
}
#endif