浏览代码

Fix detection of ModemManager (#7076)

Harry Wada 5 年之前
父节点
当前提交
f64d9b0621
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/python/qmk/cli/doctor.py

+ 2 - 2
lib/python/qmk/cli/doctor.py

@@ -52,10 +52,10 @@ def doctor(cli):
         if shutil.which('systemctl'):
             mm_check = subprocess.run(['systemctl', 'list-unit-files'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, timeout=10, universal_newlines=True)
             if mm_check.returncode == 0:
-                mm = True
+                mm = False
                 for line in mm_check.stdout.split('\n'):
                     if 'ModemManager' in line and 'enabled' in line:
-                        mm = False
+                        mm = True
 
                 if mm:
                     cli.log.warn("{bg_yellow}Detected ModemManager. Please disable it if you are using a Pro-Micro.")