AP_RTC: remove code if AP_RTC_ENABLED is false

This commit is contained in:
Peter Barker 2023-10-06 10:45:02 +11:00 committed by Andrew Tridgell
parent 7393876217
commit f9de53fd09
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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