Skip to content

Commit

Permalink
HAL_SITL: use AP_BUILD_ROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Oct 19, 2023
1 parent 4b0db29 commit d4d21e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libraries/AP_HAL_SITL/SITL_cmdline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
#include <time.h>
#include <sys/time.h>

#define FORCE_VERSION_H_INCLUDE
#include "ap_version.h"

extern HAL_SITL& hal;

using namespace HALSITL;
Expand Down Expand Up @@ -356,7 +359,7 @@ void SITL_State::_parse_command_line(int argc, char * const argv[])
bool storage_fram_enabled = false;
bool erase_all_storage = false;

if (asprintf(&autotest_dir, SKETCHBOOK "/Tools/autotest") <= 0) {
if (asprintf(&autotest_dir, AP_BUILD_ROOT "/Tools/autotest") <= 0) {
AP_HAL::panic("out of memory");
}
_set_signal_handlers();
Expand Down

0 comments on commit d4d21e2

Please sign in to comment.