diff options
author | Justin Berger <jdavidberger@gmail.com> | 2018-03-23 14:43:32 +0000 |
---|---|---|
committer | Justin Berger <jdavidberger@gmail.com> | 2018-03-23 14:43:32 +0000 |
commit | d475a433ec40f335fa0bffdf774bac4c69d7fc10 (patch) | |
tree | eb59da712588959d681944d3c83607f97003bf43 /src/survive_cal.c | |
parent | 17e06b4822e60ccca865e77b45bf2b52a26852f2 (diff) | |
download | libsurvive-d475a433ec40f335fa0bffdf774bac4c69d7fc10.tar.gz libsurvive-d475a433ec40f335fa0bffdf774bac4c69d7fc10.tar.bz2 |
Made calibration installation driveable from the command line; also turns on if there is no calibration
Diffstat (limited to 'src/survive_cal.c')
-rwxr-xr-x | src/survive_cal.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/survive_cal.c b/src/survive_cal.c index c94bd0d..218f5c1 100755 --- a/src/survive_cal.c +++ b/src/survive_cal.c @@ -116,6 +116,9 @@ int survive_cal_get_status( struct SurviveContext * ctx, char * description, int void survive_cal_install( struct SurviveContext * ctx ) { + if (ctx->calptr) + return; + int i; struct SurviveCalData * cd = ctx->calptr = calloc( 1, sizeof( struct SurviveCalData ) ); |