Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/Comms
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2020-12-02 13:51:16 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-12-02 13:51:16 +0300
commit51926a0b7309aa7845a04f923f8cdf7f0befd0ee (patch)
tree54a191d11ad4cd201d3b9abcd32721d712bb4da1 /src/Comms
parent31a43307817ebd4ecabac337a853f32d3db0315d (diff)
Fixed compile error in PCCB build
Diffstat (limited to 'src/Comms')
-rw-r--r--src/Comms/PanelDueUpdater.cpp10
-rw-r--r--src/Comms/PanelDueUpdater.h7
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_ */