Skip to content

Commit

Permalink
fix #303
Browse files Browse the repository at this point in the history
bump version to 2.4.1
  • Loading branch information
Stefal committed Feb 26, 2023
1 parent a96a7d8 commit e42105d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog
## [2.4.1] - 2023-02-26
### Fixed
- GUI -> Settings: Fixed GNSS detect & configure. #303

## [2.4.0] - 2023-02-20
### Added
Expand Down
6 changes: 6 additions & 0 deletions rtkbase_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,12 @@ upd_2.4b() {
upd_2.3.4 "$@"
}

upd_2.4.0() {
echo '####################'
echo 'Update from 2.4.0'
echo '####################'
}

# standard update
update
# calling specific update function. If we are using v2.2.5, it will call the function upd_2.2.5
Expand Down
2 changes: 1 addition & 1 deletion settings.conf.default
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[general]
# Version
version=2.4.0
version=2.4.1
# Rtkbase upgrade mandatory "checkpoint"
checkpoint_version=2.5.0
# User who runs str2str_file service
Expand Down
15 changes: 2 additions & 13 deletions web_app/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ def deleteLog(json_msg):
def detect_receiver(json_msg):
print("Detecting gnss receiver")
#print("DEBUG json_msg: ", json_msg)
answer = subprocess.run([os.path.join(rtkbase_path, "tools", "install.sh"), "--detect-usb-gnss", "--no-write-port"], encoding="UTF-8", stderr=subprocess.PIPE, stdout=subprocess.PIPE)
answer = subprocess.run([os.path.join(rtkbase_path, "tools", "install.sh"), "--user", rtkbaseconfig.get("general", "user"), "--detect-usb-gnss", "--no-write-port"], encoding="UTF-8", stderr=subprocess.PIPE, stdout=subprocess.PIPE)
if answer.returncode == 0 and "/dev/" in answer.stdout:
#print("DEBUG ok stdout: ", answer.stdout)
try:
Expand Down Expand Up @@ -593,7 +593,7 @@ def configure_receiver(brand="u-blox", model="F9P"):
restart_main = False

print("configuring {} gnss receiver model {}".format(brand, model))
answer = subprocess.run([os.path.join(rtkbase_path, "tools", "install.sh"), "--configure-gnss"], encoding="UTF-8", stderr=subprocess.PIPE, stdout=subprocess.PIPE)
answer = subprocess.run([os.path.join(rtkbase_path, "tools", "install.sh"), "--user", rtkbaseconfig.get("general", "user"), "--configure-gnss"], encoding="UTF-8", stderr=subprocess.PIPE, stdout=subprocess.PIPE)
#print("DEBUG - stdout: ", answer.stdout)
#print("DEBUG - returncode: ", answer.returncode)

Expand Down Expand Up @@ -906,17 +906,6 @@ def update_settings(json_msg):
#check if we run RTKBase for the first time after an update
#and restart some services to let them send the new release number.
if rtkbaseconfig.get("general", "updated", fallback="False").lower() == "true":
if "ntrip" in rtkbaseconfig.sections():
#transfering settings from ntrip section to ntrip_A section
rtkbaseconfig.config['ntrip_A']['svr_addr_a'] = rtkbaseconfig.get('ntrip', 'svr_addr')
rtkbaseconfig.config['ntrip_A']['svr_port_a'] = rtkbaseconfig.get('ntrip', 'svr_port')
rtkbaseconfig.config['ntrip_A']['svr_pwd_a'] = rtkbaseconfig.get('ntrip', 'svr_pwd')
rtkbaseconfig.config['ntrip_A']['mnt_name_a'] = rtkbaseconfig.get('ntrip', 'mnt_name')
rtkbaseconfig.config['ntrip_A']['rtcm_msg_a'] = rtkbaseconfig.get('ntrip', 'rtcm_msg')
rtkbaseconfig.config['ntrip_A']['ntrip_a_receiver_options'] = rtkbaseconfig.get('ntrip', 'ntrip_receiver_options')
#remove old ntrip section
rtkbaseconfig.remove_section('ntrip')
rtkbaseconfig.config['ntrip_B']['ntrip_B_receiver_options'] = rtkbaseconfig.get('ntrip_A', 'ntrip_a_receiver_options')
restartServices(["ntrip_A", "ntrip_B", "local_ntrip_caster", "rtcm_svr", "rtcm_serial"])
rtkbaseconfig.remove_option("general", "updated")
rtkbaseconfig.write_file()
Expand Down

0 comments on commit e42105d

Please sign in to comment.