summaryrefslogtreecommitdiff
path: root/lib/python/qmk
diff options
context:
space:
mode:
authorHarry Wada <harrywada@gmail.com>2019-10-20 09:33:58 -0500
committerFlorian Didron <fdidron@users.noreply.github.com>2019-11-04 16:51:03 +0900
commit415ab3c96cfb85889bef8b6cd7e65c4deea56f93 (patch)
treeda05758bc932cafd8059b00889df09ae64748f56 /lib/python/qmk
parentbe4771380fe13aae243119a5863c6aff5f205346 (diff)
Fix detection of ModemManager (#7076)
Diffstat (limited to 'lib/python/qmk')
-rwxr-xr-xlib/python/qmk/cli/doctor.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/python/qmk/cli/doctor.py b/lib/python/qmk/cli/doctor.py
index 2b6a03e443..309de0c671 100755
--- a/lib/python/qmk/cli/doctor.py
+++ b/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.")