Skip to content

Commit

Permalink
Fix detection of ModemManager (#7076)
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Wada authored and zvecr committed Oct 20, 2019
1 parent 8baed70 commit f64d9b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/python/qmk/cli/doctor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")
Expand Down

0 comments on commit f64d9b0

Please sign in to comment.