diff options
author | Michael Turvey <mwturvey@users.noreply.github.com> | 2018-03-10 23:31:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-10 23:31:28 -0700 |
commit | 8eea660564e8fa9e1f5f01a278e1df9898694975 (patch) | |
tree | 504786ff79dcac436229e7c6e6a97ae305a38293 /src/survive_config.c | |
parent | c3f6a9a94575035b4226fc646989d561efe5c3f4 (diff) | |
parent | 8ef086fb0524f8d9958de96276790952562902ef (diff) | |
download | libsurvive-8eea660564e8fa9e1f5f01a278e1df9898694975.tar.gz libsurvive-8eea660564e8fa9e1f5f01a278e1df9898694975.tar.bz2 |
Merge pull request #108 from mwturvey/fix_save_restore_LH_POS
Fix MSVC & Fix Saving & Restoring PositionSet bit
Diffstat (limited to 'src/survive_config.c')
-rw-r--r-- | src/survive_config.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/survive_config.c b/src/survive_config.c index 46c6658..d923ba4 100644 --- a/src/survive_config.c +++ b/src/survive_config.c @@ -119,6 +119,7 @@ void config_read_lighthouse(config_group* lh_config, BaseStationData* bsd, uint8 config_read_float_array(cg, "fcalcurve", bsd->fcalcurve, defaults, 2); config_read_float_array(cg, "fcalgibpha", bsd->fcalgibpha, defaults, 2); config_read_float_array(cg, "fcalgibmag", bsd->fcalgibmag, defaults, 2); + bsd->PositionSet = config_read_uint32(cg, "PositionSet", 0); } @@ -132,6 +133,7 @@ void config_set_lighthouse(config_group* lh_config, BaseStationData* bsd, uint8_ config_set_float_a(cg,"fcalcurve", bsd->fcalcurve,2); config_set_float_a(cg,"fcalgibpha", bsd->fcalgibpha,2); config_set_float_a(cg,"fcalgibmag", bsd->fcalgibmag,2); + config_set_uint32(cg, "PositionSet", bsd->PositionSet); } void sstrcpy(char** dest, const char *src) { |