|
|
|
@ -23,7 +23,11 @@ try:
|
|
|
|
start = time.perf_counter()
|
|
|
|
start = time.perf_counter()
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
while (session.read() == 0) and ((time.perf_counter() - start) < 2) and (mode < 2):
|
|
|
|
# while (session.read() == 0) and ((time.perf_counter() - start) < 2) and (mode < 2):
|
|
|
|
|
|
|
|
while ((time.perf_counter() - start) < 2) and (mode < 2):
|
|
|
|
|
|
|
|
if session.waiting(2.0):
|
|
|
|
|
|
|
|
session.read()
|
|
|
|
|
|
|
|
|
|
|
|
# print(gps.MODE_SET)
|
|
|
|
# print(gps.MODE_SET)
|
|
|
|
# print(session.valid)
|
|
|
|
# print(session.valid)
|
|
|
|
if (session.valid):
|
|
|
|
if (session.valid):
|
|
|
|
|