Skip to content

Commit

Permalink
IMPROVEMENT: better FC info warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
amilcarlucas committed Aug 28, 2024
1 parent 13e14e6 commit 1f2b2a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MethodicConfigurator/backend_flightcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def __process_autopilot_version(self, m, banner_msgs) -> str:
if 'ChibiOS:' in msg:
os_custom_version = msg.split(' ')[1].strip()
if os_custom_version != self.info.os_custom_version:
logging_warning("ChibiOS version mismatch: %s (BANNER)!= % s(AUTOPILOT_VERSION)", os_custom_version,
logging_warning("ChibiOS version missmatch: %s (BANNER) != % s (AUTOPILOT_VERSION)", os_custom_version,
self.info.os_custom_version)
os_custom_version_index = i
continue
Expand All @@ -302,7 +302,7 @@ def __process_autopilot_version(self, m, banner_msgs) -> str:
if len(fc_product_banner_substrings) >= 3:
fc_product = fc_product_banner_substrings[0]
if fc_product != self.info.product:
logging_warning("FC product mismatch: %s (BANNER)!= %s(AUTOPILOT_VERSION)", fc_product, self.info.product)
logging_warning("FC product mismatch: %s (BANNER) != %s (AUTOPILOT_VERSION)", fc_product, self.info.product)
self.info.product = fc_product # force the one from the banner because it is more reliable
return ""

Expand Down

0 comments on commit 1f2b2a5

Please sign in to comment.