Files
qmk_firmware/quantum
Jens van Almsick d3069760d7 [OS Detection] Don't classify MacOS sequences as Windows when cnt_02 >= 2 (#26303)
fix(os_detection): don't classify macOS sequences as Windows

macOS 26.x (ChibiOS) can send a late wLength=0x04 packet after the two
0xFF packets that already established OS_MACOS. The Windows check
(cnt_ff >= 2 && cnt_04 >= 1) fired on this combination and overwrites
the correct result.

Real-world Windows sequences always start with 0xFF packets (cnt_02 = 0);
macOS sequences always open with at least two 0x02 packets (cnt_02 >= 2).
Adding && setups_data.cnt_02 < 2 to the Windows condition is sufficient
to separate the two populations without affecting any existing detection.

Adds a regression test for the affected sequence.
2026-09-25 19:05:33 +01:00
..
2025-08-17 01:14:48 +01:00
2025-03-28 21:03:59 +11:00
2024-10-12 00:10:02 +01:00
2024-10-12 00:10:02 +01:00
2022-11-03 21:36:58 +00:00
2022-11-03 21:36:58 +00:00
2024-07-03 18:35:54 +10:00
2025-05-22 23:31:15 +10:00
2026-02-13 18:20:18 +00:00
2025-01-01 23:12:58 -08:00
2025-01-01 23:12:58 -08:00
2020-03-06 22:29:01 -08:00
2024-06-22 09:10:58 +01:00
2024-06-22 09:10:58 +01:00
2026-06-14 12:38:34 +10:00
2023-02-12 10:23:07 +11:00
2023-02-12 10:23:07 +11:00
2019-08-30 15:01:52 -07:00
2026-04-17 08:53:05 +10:00
2026-04-17 08:53:05 +10:00
2022-11-04 00:50:59 +00:00