Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. (env)ipa@ipa-Satellite-Pro-L300:~/Projects/pactremind$ git diff
  2. diff --git a/reminder.py b/reminder.py
  3. index 809f187..f03de1c 100755
  4. --- a/reminder.py
  5. +++ b/reminder.py
  6. @@ -196,14 +196,14 @@ def get_modems(options, id1='Airtel', id2='MTN'):
  7. import re
  8. import os
  9. modems = [(id1,
  10. - '/dev/cu.HUAWEIMobile-Modem',
  11. - '/dev/cu.HUAWEIMobile-Pcui',)]
  12. - xs = ['/dev/%s' % x for x in os.listdir('/dev/') \
  13. - if re.match(r'cu.HUAWEI.*-\d+', x)][:2]
  14. - if xs:
  15. - modems.append((id2, xs[0], xs[1]))
  16. + '/dev/ttyUSB0',
  17. + '/dev/ttyUSB2',)]
  18. + #xs = ['/dev/%s' % x for x in os.listdir('/dev/') \
  19. + # if re.match(r'cu.HUAWEI.*-\d+', x)][:2]
  20. + #if xs:
  21. + # modems.append((id2, xs[0], xs[1]))
  22. return modems
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement