Skip to content

Commit

Permalink
Update Mobile_Site_Survey.py
Browse files Browse the repository at this point in the history
  • Loading branch information
phate999 authored Dec 15, 2023
1 parent 9f70106 commit 9d69dd7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Mobile_Site_Survey/Mobile_Site_Survey.py
Original file line number Diff line number Diff line change
Expand Up @@ -402,13 +402,13 @@ def get_appdata(name):

def get_config(name):
config = get_appdata(name)
if config.get('dead_reckoning') is None:
config['dead_reckoning'] = False
save_config(config)
if not config:
config = settings
cp.post('config/system/sdk/appdata', {"name": name, "value": json.dumps(config)})
cp.log(f'No config found - Saved default config: {config}')
elif config.get('dead_reckoning') is None:
config['dead_reckoning'] = False
save_config(config)
return config

def dec(deg, min, sec):
Expand Down

0 comments on commit 9d69dd7

Please sign in to comment.