diff options
author | Mike Turvey <mturvey6@gmail.com> | 2017-12-19 23:30:52 -0700 |
---|---|---|
committer | Mike Turvey <mturvey6@gmail.com> | 2017-12-19 23:30:52 -0700 |
commit | a015a5bc3631f813281c5af85a29b9d84a3eb924 (patch) | |
tree | 7df1b75b247d1031cd972fe6d7cc5f2872f61a55 /src/survive.c | |
parent | 82d5acc8a7536da94399353ee446d44d7a187834 (diff) | |
download | libsurvive-a015a5bc3631f813281c5af85a29b9d84a3eb924.tar.gz libsurvive-a015a5bc3631f813281c5af85a29b9d84a3eb924.tar.bz2 |
Add support for using only 1 lighthouse
Change adds a config option for the number of "active" lighthouses,
which can be 1. Calibrate will run with a single lighthouse
if the new config option LighthouseCount is set to 1.
Diffstat (limited to 'src/survive.c')
-rwxr-xr-x | src/survive.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/survive.c b/src/survive.c index f637bd8..0c88137 100755 --- a/src/survive.c +++ b/src/survive.c @@ -75,6 +75,8 @@ SurviveContext * survive_init( int headless ) config_read(ctx, "config.json"); + ctx->activeLighthouses = config_read_uint32(ctx->global_config_values, "LighthouseCount", 2); + ctx->faultfunction = survivefault; ctx->notefunction = survivenote; |