AP_IOMCU: fixed build on systems without IO MCU

This commit is contained in:
Andrew Tridgell 2018-01-02 16:47:42 +11:00
parent 71a47303b4
commit 9b9b4a169e
2 changed files with 10 additions and 0 deletions

View File

@ -6,6 +6,9 @@
*/ */
#include "AP_IOMCU.h" #include "AP_IOMCU.h"
#if HAL_WITH_IO_MCU
#include <AP_Math/AP_Math.h> #include <AP_Math/AP_Math.h>
#include <AP_Math/crc.h> #include <AP_Math/crc.h>
@ -479,3 +482,5 @@ bool AP_IOMCU::check_rcinput(uint32_t &last_frame_us, uint8_t &num_channels, uin
} }
return false; return false;
} }
#endif // HAL_WITH_IO_MCU

View File

@ -6,6 +6,9 @@
*/ */
#include <AP_HAL/AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if HAL_WITH_IO_MCU
#include "ch.h" #include "ch.h"
class AP_IOMCU { class AP_IOMCU {
@ -172,3 +175,5 @@ private:
bool corked; bool corked;
}; };
#endif // HAL_WITH_IO_MCU