AP_HAL_SITL: move from HAL_NO_LOGGING to HAL_LOGGING_ENABLED

This commit is contained in:
Peter Barker 2021-05-17 16:51:37 +10:00 committed by Andrew Tridgell
parent 7d8c5757d6
commit c326cdb1ca
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ void HAL_SITL::run(int argc, char * const argv[], Callbacks* callbacks) const
callbacks->setup();
scheduler->set_system_initialized();
#ifndef HAL_NO_LOGGING
#if HAL_LOGGING_ENABLED
if (getenv("SITL_WATCHDOG_RESET")) {
const AP_HAL::Util::PersistentData &pd = util->persistent_data;
AP::logger().WriteCritical("WDOG", "TimeUS,Task,IErr,IErrCnt,IErrLn,MavMsg,MavCmd,SemLine", "QbIHHHHH",