mirror of https://github.com/ArduPilot/ardupilot
AP_RTC: remove code if AP_RTC_ENABLED is false
This commit is contained in:
parent
7393876217
commit
f9de53fd09
|
@ -1,3 +1,7 @@
|
|||
#include "AP_RTC_config.h"
|
||||
|
||||
#if AP_RTC_ENABLED
|
||||
|
||||
#include "AP_RTC.h"
|
||||
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
|
@ -240,3 +244,5 @@ AP_RTC &rtc()
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
#endif // AP_RTC_ENABLED
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
#include "AP_RTC_config.h"
|
||||
|
||||
#if AP_RTC_ENABLED
|
||||
|
||||
#include <AP_Param/AP_Param.h>
|
||||
|
||||
#include <stdint.h>
|
||||
|
@ -73,3 +75,5 @@ private:
|
|||
namespace AP {
|
||||
AP_RTC &rtc();
|
||||
};
|
||||
|
||||
#endif // AP_RTC_ENABLED
|
||||
|
|
Loading…
Reference in New Issue