diff options
Diffstat (limited to 'src/obtsDevice.cpp')
| -rw-r--r-- | src/obtsDevice.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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
} |
