aboutsummaryrefslogtreecommitdiff
path: root/src/survive_cal.c
diff options
context:
space:
mode:
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 06914eb..ad518b3 100644..100755
--- a/src/survive_cal.c
+++ b/src/survive_cal.c
@@ -104,9 +104,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" );
}
ootx_packet_clbk = ootx_packet_clbk_d;