aboutsummaryrefslogtreecommitdiff
path: root/quantum/os_detection.c
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/os_detection.c')
-rw-r--r--quantum/os_detection.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/quantum/os_detection.c b/quantum/os_detection.c
index 84bbeeed54..9a9f9052f2 100644
--- a/quantum/os_detection.c
+++ b/quantum/os_detection.c
@@ -72,6 +72,8 @@ static volatile struct usb_device_state maxprev_usb_device_state = {.configure_s
static volatile bool debouncing = false;
static volatile fast_timer_t last_time = 0;
+bool process_detected_host_os_modules(os_variant_t os);
+
void os_detection_task(void) {
#ifdef OS_DETECTION_KEYBOARD_RESET
// resetting the keyboard on the USB device state change callback results in instability, so delegate that to this task
@@ -96,12 +98,17 @@ void os_detection_task(void) {
if (detected_os != reported_os || first_report) {
first_report = false;
reported_os = detected_os;
+ process_detected_host_os_modules(detected_os);
process_detected_host_os_kb(detected_os);
}
}
}
}
+__attribute__((weak)) bool process_detected_host_os_modules(os_variant_t os) {
+ return true;
+}
+
__attribute__((weak)) bool process_detected_host_os_kb(os_variant_t detected_os) {
return process_detected_host_os_user(detected_os);
}