Linux is misidentified as windows. Disable windows for now
This commit is contained in:
@@ -26,16 +26,15 @@ void matrix_scan_user(void) {
|
|||||||
if (!os_detected && !os_mode_manual && timer_elapsed32(0) > 2000) {
|
if (!os_detected && !os_mode_manual && timer_elapsed32(0) > 2000) {
|
||||||
os_detected = true;
|
os_detected = true;
|
||||||
os_variant_t os = detected_host_os();
|
os_variant_t os = detected_host_os();
|
||||||
|
// OS detection often misidentifies linux as windows, so treat both as linux for now
|
||||||
switch (os) {
|
switch (os) {
|
||||||
case OS_MACOS:
|
case OS_MACOS:
|
||||||
case OS_IOS:
|
case OS_IOS:
|
||||||
os_mode = OS_MODE_MAC;
|
os_mode = OS_MODE_MAC;
|
||||||
break;
|
break;
|
||||||
case OS_LINUX:
|
case OS_LINUX:
|
||||||
os_mode = OS_MODE_LINUX;
|
|
||||||
break;
|
|
||||||
case OS_WINDOWS:
|
case OS_WINDOWS:
|
||||||
os_mode = OS_MODE_WINDOWS;
|
os_mode = OS_MODE_LINUX;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
os_mode = OS_MODE_NONE;
|
os_mode = OS_MODE_NONE;
|
||||||
|
|||||||
Reference in New Issue
Block a user