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.
THIS IS THE DEVELOP BRANCH
Warning- This is the develop branch of QMK Firmware. You may encounter broken code here. Please see Breaking Changes for more information.
Quantum Mechanical Keyboard Firmware
This is a keyboard firmware based on the tmk_keyboard firmware with some useful features for Atmel AVR and ARM controllers, and more specifically, the OLKB product line, the ErgoDox EZ keyboard, and the Clueboard product line.
Documentation
The docs are powered by VitePress. They are also viewable offline; see Previewing the Documentation for more details.
You can request changes by making a fork and opening a pull request.
Supported Keyboards
The project also includes community support for lots of other keyboards.
Maintainers
QMK is developed and maintained by Jack Humbert of OLKB with contributions from the community, and of course, Hasu. The OLKB product firmwares are maintained by Jack Humbert, the Ergodox EZ by ZSA Technology Labs, the Clueboard by Zach White, and the Atreus by Phil Hagelberg.
Official Website
qmk.fm is the official website of QMK, where you can find links to this page, the documentation, and the keyboards supported by QMK.