Remove useless debug, fix pppd not being detected.
parent
ec50d50f5c
commit
fa66ce770b
2
adsl.py
2
adsl.py
|
@ -32,7 +32,7 @@ def _start_pppd():
|
||||||
|
|
||||||
def _get_pppd_pid():
|
def _get_pppd_pid():
|
||||||
for pid, process in _get_process_list():
|
for pid, process in _get_process_list():
|
||||||
if process.startswith("pppd"):
|
if process.startswith("/usr/sbin/pppd"):
|
||||||
return pid
|
return pid
|
||||||
|
|
||||||
|
|
||||||
|
|
1
lcd.py
1
lcd.py
|
@ -23,7 +23,6 @@ class LCDScreen(object):
|
||||||
|
|
||||||
def text(self, text):
|
def text(self, text):
|
||||||
sanitized = "".join(c for c in text if c.lower() in "1234567890abcdefghjiklmnopqrstuvwxyz{}[]/+-_. ")
|
sanitized = "".join(c for c in text if c.lower() in "1234567890abcdefghjiklmnopqrstuvwxyz{}[]/+-_. ")
|
||||||
print sanitized
|
|
||||||
self.serial.write(sanitized)
|
self.serial.write(sanitized)
|
||||||
self.serial.flush()
|
self.serial.flush()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue