summaryrefslogtreecommitdiffstats
path: root/Code/Box2-Code/GSMClass.py
diff options
context:
space:
mode:
Diffstat (limited to 'Code/Box2-Code/GSMClass.py')
-rw-r--r--Code/Box2-Code/GSMClass.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/Code/Box2-Code/GSMClass.py b/Code/Box2-Code/GSMClass.py
index b932ab5..126446e 100644
--- a/Code/Box2-Code/GSMClass.py
+++ b/Code/Box2-Code/GSMClass.py
@@ -14,7 +14,7 @@ class serialPort():
self.ser = 0
self.baudRate = baudRate
self.signalStrength = 0
- #self.callerConnected = -1
+
self.timer = timeout
self.timer1 = timeout
self.start = 0
@@ -35,12 +35,6 @@ class serialPort():
bytesize=EIGHTBITS,
parity=PARITY_NONE,
stopbits=STOPBITS_ONE
- #timeout=0,
- #writeTimeout=0
- #xonxoff=0,
- #rtscts=0
- #interCharTimeout=None
- #I didn't need to set these variables :)
)
self.ser.flushOutput() #clean the output buffer from the serial port
self.ser.flushInput() #clean the input buffer for serial port
@@ -270,8 +264,7 @@ class serialPort():
return 'BUSY'
elif line[0:6] == '+CLCC:':
- #+CLCC: 1,0,
- #self.ser.flushInput()
+
if line[11:12] == '0':
signal.signal(signal.SIGALRM, old_handler)
signal.alarm(0)