aboutsummaryrefslogtreecommitdiff
path: root/quantum/os_detection.c
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2025-01-29 19:28:06 +0000
committerQMK Bot <hello@qmk.fm>2025-01-29 19:28:06 +0000
commitae01f1b63e6c48af462311ae75dc7201e552e34e (patch)
tree146951c9ed02dac36068bd4fc9cbcdb771476bed /quantum/os_detection.c
parent0c14fc3a211fc6ba55cf58c1b8224700102a33b3 (diff)
parent8bf01dd7966c9d556a7931be47f97bafe9a32ff9 (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'quantum/os_detection.c')
-rw-r--r--quantum/os_detection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/os_detection.c b/quantum/os_detection.c
index 0dd048a8c4..84bbeeed54 100644
--- a/quantum/os_detection.c
+++ b/quantum/os_detection.c
@@ -133,7 +133,7 @@ void process_wlength(const uint16_t w_length) {
} else if (setups_data.count == setups_data.cnt_ff) {
// Linux has 3 packets with 0xFF.
guessed = OS_LINUX;
- } else if (setups_data.count == 5 && setups_data.last_wlength == 0xFF && setups_data.cnt_ff == 1 && setups_data.cnt_02 == 2) {
+ } else if (setups_data.count >= 5 && setups_data.last_wlength == 0xFF && setups_data.cnt_ff >= 1 && setups_data.cnt_02 >= 2) {
guessed = OS_MACOS;
} else if (setups_data.count == 4 && setups_data.cnt_ff == 0 && setups_data.cnt_02 == 2) {
// iOS and iPadOS don't have the last 0xFF packet.