[gnoduino] fix default configured port scanning
- From: Lucian Langa <lucilanga src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnoduino] fix default configured port scanning
- Date: Sat, 18 Apr 2015 10:50:20 +0000 (UTC)
commit 48fe76e16b4dff2e968bf57a2b42ba2cd8d732ff
Author: Lucian Langa <lucilanga gnome org>
Date: Sat Apr 18 12:33:23 2015 +0200
fix default configured port scanning
src/serialio.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/serialio.py b/src/serialio.py
index a9c3adb..cde9d6f 100644
--- a/src/serialio.py
+++ b/src/serialio.py
@@ -46,7 +46,9 @@ class sconsole:
ports = []
tryports = glob.glob('/dev/ttyS*') + glob.glob('/dev/ttyUSB*') + glob.glob('/dev/ttyACM*')
for i in tryports:
- if i == config.cur_serial_port: continue
+ if i == config.cur_serial_port:
+ ports.append(i)
+ continue
try:
s = serial.Serial(i)
ports.append(s.portstr)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]