mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 13:58:53 +08:00
generate_microRTPS_bridge: fix fastrtpsgen version check handler
This commit is contained in:
@@ -251,9 +251,10 @@ if(os.path.exists(fastrtpsgen_path)):
|
|||||||
except OSError:
|
except OSError:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
if fastrtpsgen_version_out.isdigit():
|
try:
|
||||||
fastrtpsgen_version = float(fastrtpsgen_version_out)
|
fastrtpsgen_version = float(fastrtpsgen_version_out)
|
||||||
else:
|
except ValueError:
|
||||||
|
print("'fastrtpsgen -version' returned None. Hardsetting version to 1.0")
|
||||||
fastrtpsgen_version = 1.0
|
fastrtpsgen_version = 1.0
|
||||||
else:
|
else:
|
||||||
raise Exception(
|
raise Exception(
|
||||||
|
|||||||
Reference in New Issue
Block a user