aboutsummaryrefslogtreecommitdiffstats
path: root/LibOVR
diff options
context:
space:
mode:
authorBrad Davis <[email protected]>2014-06-06 19:52:52 -0700
committerSven Gothel <[email protected]>2015-03-17 11:57:18 +0100
commitee308a668e09db08906831f36bcddfbdf2814b23 (patch)
tree638a0226354370abb569764b0b01932bdb72384c /LibOVR
parentdd3a212f5f28ef1656ea693eda26163b4e5b5b54 (diff)
Fix a race condition in the sensor reset code that causes non-existent camera position data to be used if the sensor starts receiving messages too soon after ovr_Initialize()
Diffstat (limited to 'LibOVR')
-rw-r--r--LibOVR/Src/OVR_SensorFusion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/LibOVR/Src/OVR_SensorFusion.cpp b/LibOVR/Src/OVR_SensorFusion.cpp
index 5c21178..9918250 100644
--- a/LibOVR/Src/OVR_SensorFusion.cpp
+++ b/LibOVR/Src/OVR_SensorFusion.cpp
@@ -137,7 +137,7 @@ void SensorFusion::Reset()
ExposureRecordHistory.Clear();
NextExposureRecord = ExposureRecord();
LastMessageExposureFrame = MessageExposureFrame(NULL);
- LastVisionAbsoluteTime = 0;
+ LastVisionAbsoluteTime = 1e9;
Stage = 0;
MagRefs.Clear();