]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Fix detection of ModemManager (#7076)
authorHarry Wada <harrywada@gmail.com>
Sun, 20 Oct 2019 14:33:58 +0000 (09:33 -0500)
committerJoel Challis <git@zvecr.com>
Sun, 20 Oct 2019 14:33:58 +0000 (15:33 +0100)
lib/python/qmk/cli/doctor.py

index 2b6a03e443ae0bb9b1a163484d0c30b9285a401b..309de0c6712aa4d7b1d9004305ae938bcf25ff1b 100755 (executable)
@@ -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.")