aboutsummaryrefslogtreecommitdiff
path: root/src/survive_cal.c
diff options
context:
space:
mode:
authorcnlohr <lohr85@gmail.com>2017-03-13 01:00:00 -0400
committercnlohr <lohr85@gmail.com>2017-03-13 01:00:00 -0400
commitab32fd2966df3f6c385f281adaa4fc5af21aed57 (patch)
treefa860154ac3bcd66955395d7a053c03b98943399 /src/survive_cal.c
parent767c46b76383be63926c7ec2a74e2dd9508f60d8 (diff)
parent121afb94493a7379ce39d76bffb61c898e6aebf0 (diff)
downloadlibsurvive-ab32fd2966df3f6c385f281adaa4fc5af21aed57.tar.gz
libsurvive-ab32fd2966df3f6c385f281adaa4fc5af21aed57.tar.bz2
Merge branch 'TrackerSupport2' of https://github.com/mwturvey/libsurvive into mwturvey-TrackerSupport2
Diffstat (limited to 'src/survive_cal.c')
-rwxr-xr-x[-rw-r--r--]src/survive_cal.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/survive_cal.c b/src/survive_cal.c
index f810098..1a3be2d 100644..100755
--- a/src/survive_cal.c
+++ b/src/survive_cal.c
@@ -114,9 +114,15 @@ void survive_cal_install( struct SurviveContext * ctx )
cd->hmd = survive_get_so_by_name( ctx, "HMD" );
if( !cd->hmd )
{
- SV_ERROR( "Error: cannot find any devices labeled HMD. Required for calibration" );
- free( cd );
- return;
+ cd->hmd = survive_get_so_by_name( ctx, "TR0" );
+
+ if( !cd->hmd )
+ {
+ SV_ERROR( "Error: cannot find any devices labeled HMD. Required for calibration" );
+ free( cd );
+ return;
+ }
+ SV_INFO( "HMD not found, calibrating using Tracker" );
}