Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (env)ipa@ipa-Satellite-Pro-L300:~/Projects/pactremind$ git diff
- diff --git a/reminder.py b/reminder.py
- index 809f187..f03de1c 100755
- --- a/reminder.py
- +++ b/reminder.py
- @@ -196,14 +196,14 @@ def get_modems(options, id1='Airtel', id2='MTN'):
- import re
- import os
- modems = [(id1,
- - '/dev/cu.HUAWEIMobile-Modem',
- - '/dev/cu.HUAWEIMobile-Pcui',)]
- - xs = ['/dev/%s' % x for x in os.listdir('/dev/') \
- - if re.match(r'cu.HUAWEI.*-\d+', x)][:2]
- - if xs:
- - modems.append((id2, xs[0], xs[1]))
- + '/dev/ttyUSB0',
- + '/dev/ttyUSB2',)]
- + #xs = ['/dev/%s' % x for x in os.listdir('/dev/') \
- + # if re.match(r'cu.HUAWEI.*-\d+', x)][:2]
- + #if xs:
- + # modems.append((id2, xs[0], xs[1]))
- return modems
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement