projects
/
SaveMySugar
/
python3-savemysugar.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Put standard modules imports before other imports
[SaveMySugar/python3-savemysugar.git]
/
src
/
savemysugar
/
Modem.py
diff --git
a/src/savemysugar/Modem.py
b/src/savemysugar/Modem.py
index
e510382
..
5bdc411
100755
(executable)
--- a/
src/savemysugar/Modem.py
+++ b/
src/savemysugar/Modem.py
@@
-99,7
+99,7
@@
class Modem(object):
resultlist = []
line = ""
resultlist = []
line = ""
- while
1
:
+ while
True
:
data = self.serial.read(1)
if len(data):
line += data.decode('UTF-8')
data = self.serial.read(1)
if len(data):
line += data.decode('UTF-8')
@@
-123,7
+123,7
@@
class Modem(object):
line = ""
def get_response_loop(self):
line = ""
def get_response_loop(self):
- while
1
:
+ while
True
:
self.get_response()
def register_callback(self, response, callback_func):
self.get_response()
def register_callback(self, response, callback_func):
@@
-153,7
+153,7
@@
def test(port, number):
time_difference = time2 - time1
print("time difference: %.2f" % time_difference)
time1 = time.time()
time_difference = time2 - time1
print("time difference: %.2f" % time_difference)
time1 = time.time()
- modem.send_command("ATDT" + number)
+ modem.send_command("ATDT" + number
+ ";"
)
call_setup_time = 9
inter_call_sleep = 5
call_setup_time = 9
inter_call_sleep = 5