diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-12-02 13:51:16 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-12-02 13:51:16 +0300 |
commit | 51926a0b7309aa7845a04f923f8cdf7f0befd0ee (patch) | |
tree | 54a191d11ad4cd201d3b9abcd32721d712bb4da1 /src/Comms | |
parent | 31a43307817ebd4ecabac337a853f32d3db0315d (diff) |
Fixed compile error in PCCB build
Diffstat (limited to 'src/Comms')
-rw-r--r-- | src/Comms/PanelDueUpdater.cpp | 10 | ||||
-rw-r--r-- | src/Comms/PanelDueUpdater.h | 7 |
2 files changed, 14 insertions, 3 deletions
diff --git a/src/Comms/PanelDueUpdater.cpp b/src/Comms/PanelDueUpdater.cpp index 66da41fa..9ef721ff 100644 --- a/src/Comms/PanelDueUpdater.cpp +++ b/src/Comms/PanelDueUpdater.cpp @@ -5,8 +5,12 @@ * Author: manuel */ -#include <Comms/PanelDueUpdater.h> -#include "Platform.h" +#include "PanelDueUpdater.h" + +#if HAS_AUX_DEVICES + +#include <Platform.h> +#include <RepRap.h> #if !ALLOW_OTHER_AUX constexpr uint32_t serialChannel = 1; @@ -323,4 +327,6 @@ UARTClass* PanelDueUpdater::GetAuxPort() noexcept &SERIAL_AUX_DEVICE; } +#endif + // End diff --git a/src/Comms/PanelDueUpdater.h b/src/Comms/PanelDueUpdater.h index bff1c933..1a9a3e47 100644 --- a/src/Comms/PanelDueUpdater.h +++ b/src/Comms/PanelDueUpdater.h @@ -8,7 +8,10 @@ #ifndef SRC_COMMS_PANELDUEUPDATER_H_ #define SRC_COMMS_PANELDUEUPDATER_H_ -#include <RepRap.h> +#include <RepRapFirmware.h> + +#if HAS_AUX_DEVICES + #include <General/NamedEnum.h> #ifdef DUET3MINI // if using CoreN2G @@ -76,4 +79,6 @@ private: UARTClass* GetAuxPort() noexcept; }; +#endif // HAS_AUX_DEVICES + #endif /* SRC_COMMS_PANELDUEUPDATER_H_ */ |