Skip to content

Commit f3c39d3

Browse files
committed
dissplay detect / configure std output in the log
1 parent 4cfdeb9 commit f3c39d3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

web_app/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ def detect_receiver(json_msg):
647647
#print("DEBUG json_msg: ", json_msg)
648648
answer = subprocess.run([os.path.join(rtkbase_path, "tools", "install.sh"), "--user", rtkbaseconfig.get("general", "user"), "--detect-gnss", "--no-write-port"], encoding="UTF-8", stderr=subprocess.PIPE, stdout=subprocess.PIPE, check=False)
649649
if answer.returncode == 0 and "/dev/" in answer.stdout:
650-
#print("DEBUG ok stdout: ", answer.stdout)
650+
print(answer.stdout)
651651
try:
652652
device_info = next(x for x in answer.stdout.splitlines() if x.startswith('/dev/')).split(' - ')
653653
port, gnss_type, speed, firmware, model = [x.strip() for x in device_info]
@@ -694,7 +694,7 @@ def configure_receiver(brand="", model=""):
694694

695695
print("configuring {} gnss receiver model {}".format(brand, model))
696696
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, check=False)
697-
#print("DEBUG - stdout: ", answer.stdout)
697+
print(answer.stdout)
698698
#print("DEBUG - returncode: ", answer.returncode)
699699

700700
if answer.returncode == 0: # and "Done" in answer.stdout:

0 commit comments

Comments
 (0)