mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-20 07:38:28 -04:00
AP_Baro: allow compilation with HAL_LOGGING_ENABLED false
This commit is contained in:
parent
8640a96851
commit
4f6f6a7ff6
@ -874,6 +874,7 @@ void AP_Baro::_probe_i2c_barometers(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if HAL_LOGGING_ENABLED
|
||||||
bool AP_Baro::should_log() const
|
bool AP_Baro::should_log() const
|
||||||
{
|
{
|
||||||
AP_Logger *logger = AP_Logger::get_singleton();
|
AP_Logger *logger = AP_Logger::get_singleton();
|
||||||
@ -888,6 +889,7 @@ bool AP_Baro::should_log() const
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
call update on all drivers
|
call update on all drivers
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
#include <AP_Logger/AP_Logger_config.h>
|
||||||
|
|
||||||
|
#if HAL_LOGGING_ENABLED
|
||||||
|
|
||||||
#include "AP_Baro.h"
|
#include "AP_Baro.h"
|
||||||
|
|
||||||
#include <AP_Logger/AP_Logger.h>
|
#include <AP_Logger/AP_Logger.h>
|
||||||
@ -44,3 +48,5 @@ void AP_Baro::Write_Baro(void)
|
|||||||
Write_Baro_instance(time_us, i);
|
Write_Baro_instance(time_us, i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user