diff options
author | Harry Wada <harrywada@gmail.com> | 2019-10-20 09:33:58 -0500 |
---|---|---|
committer | Joel Challis <git@zvecr.com> | 2019-10-20 15:33:58 +0100 |
commit | f64d9b06215bb08d7f77aeba126c0804fffd0064 (patch) | |
tree | 9b53cd95f8f0ba9b0ace7f20b422d073658dcd11 /lib | |
parent | 8baed70ed10fadd480511425d0f1b0bbf2d2f109 (diff) | |
download | qmk_firmware-f64d9b06215bb08d7f77aeba126c0804fffd0064.tar.gz qmk_firmware-f64d9b06215bb08d7f77aeba126c0804fffd0064.zip |
Fix detection of ModemManager (#7076)
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/python/qmk/cli/doctor.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/python/qmk/cli/doctor.py b/lib/python/qmk/cli/doctor.py index 2b6a03e44..309de0c67 100755 --- a/lib/python/qmk/cli/doctor.py +++ b/lib/python/qmk/cli/doctor.py | |||
@@ -52,10 +52,10 @@ def doctor(cli): | |||
52 | if shutil.which('systemctl'): | 52 | if shutil.which('systemctl'): |
53 | mm_check = subprocess.run(['systemctl', 'list-unit-files'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, timeout=10, universal_newlines=True) | 53 | mm_check = subprocess.run(['systemctl', 'list-unit-files'], stdout=subprocess.PIPE, stderr=subprocess.PIPE, timeout=10, universal_newlines=True) |
54 | if mm_check.returncode == 0: | 54 | if mm_check.returncode == 0: |
55 | mm = True | 55 | mm = False |
56 | for line in mm_check.stdout.split('\n'): | 56 | for line in mm_check.stdout.split('\n'): |
57 | if 'ModemManager' in line and 'enabled' in line: | 57 | if 'ModemManager' in line and 'enabled' in line: |
58 | mm = False | 58 | mm = True |
59 | 59 | ||
60 | if mm: | 60 | if mm: |
61 | cli.log.warn("{bg_yellow}Detected ModemManager. Please disable it if you are using a Pro-Micro.") | 61 | cli.log.warn("{bg_yellow}Detected ModemManager. Please disable it if you are using a Pro-Micro.") |