From 71530320457254d8b1f311e57b172a1680c017ce Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Wed, 11 Jul 2012 14:41:29 +0100 Subject: sanitized input --- src/obtsDevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/obtsDevice.cpp') diff --git a/src/obtsDevice.cpp b/src/obtsDevice.cpp index ebb1fb6..5677d0a 100644 --- a/src/obtsDevice.cpp +++ b/src/obtsDevice.cpp @@ -116,7 +116,7 @@ void obtsDevice::draw(float t) timeScale=t; float decay=2.0; float now=ofGetElapsedTimef(); - if ((now-lastUsed) > 600) disconnect(); //connection timeout 10 minutes + if ((now-lastUsed) > 6) disconnect(); //connection timeout 10 minutes float timeSeg=now-lastTime; lastTime=now; //draw a line at the angular position of the device @@ -172,7 +172,7 @@ void obtsDevice::draw(float t) glVertex3f(cos(coords.x)*coords.y,sin(coords.x)*coords.y,etimepos); glEnd(); } - if (((*i).endTime<0.1f)&&((now-(*i).startTime)>30.0f)) endCall(); + if (((*i).endTime<0.1f)&&((now-(*i).startTime)>3.0f)) endCall(); //was 30 } -- cgit v1.2.3