Browse Source

AP_SmartRTL: fixed build warning

mission-4.1.18
Andrew Tridgell 7 years ago
parent
commit
930d22daf9
  1. 2
      libraries/AP_SmartRTL/examples/SmartRTL_test/SmartRTL_test.cpp

2
libraries/AP_SmartRTL/examples/SmartRTL_test/SmartRTL_test.cpp

@ -110,7 +110,7 @@ void check_path(const std::vector<Vector3f>& correct_path, const char* test_name @@ -110,7 +110,7 @@ void check_path(const std::vector<Vector3f>& correct_path, const char* test_name
}
// display overall results
hal.console->printf("%s: %s time:%u us\n", test_name, (num_points_match && points_match) ? "success" : "fail", time_us);
hal.console->printf("%s: %s time:%u us\n", test_name, (num_points_match && points_match) ? "success" : "fail", (unsigned)time_us);
// display number of points
hal.console->printf(" expected %u points, got %u\n", (unsigned)correct_path.size(), (unsigned)smart_rtl.get_num_points());

Loading…
Cancel
Save