HAL_SITL: use AP_BUILD_ROOT

This commit is contained in:
Andrew Tridgell 2023-10-19 12:39:13 +11:00 committed by Peter Barker
parent 1d05196b52
commit 04bbe648e6
1 changed files with 4 additions and 1 deletions

View File

@ -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;
@ -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();