aboutsummaryrefslogtreecommitdiffstats
path: root/glutte_serial_web.py
diff options
context:
space:
mode:
Diffstat (limited to 'glutte_serial_web.py')
-rwxr-xr-xglutte_serial_web.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/glutte_serial_web.py b/glutte_serial_web.py
index 016c8da..00d131c 100755
--- a/glutte_serial_web.py
+++ b/glutte_serial_web.py
@@ -37,7 +37,7 @@ ser = serialrx.SerialRX()
@app.route('/')
def index():
- return render_template('index.html')
+ return render_template('index.html', last_lines=ser.get_last_lines())
@sockets.route('/stream')
@@ -50,7 +50,7 @@ def stream(socket):
while not socket.closed:
# Force to check if the client is still here
try:
- with Timeout(0.1, False):
+ with Timeout(0.05, False):
socket.receive()
except:
pass
@@ -59,7 +59,7 @@ def stream(socket):
socket.send(line)
except IndexError:
pass
- sleep(0.1)
+ sleep(0.05)
except:
raise
finally: