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
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2021-10-31 22:25:44 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-10-31 22:25:44 +0300
commit97ead36a9b3e8a5ee3019c7a3c1ac6a4289408cc (patch)
tree5b6cd088b180c003c9974937b1173459a218f066 /src/GCodes/GCodeChannel.h
parent9b90cdf445b9893eb93c02317ef87965ec60657f (diff)
Tidied up for static analysis
Diffstat (limited to 'src/GCodes/GCodeChannel.h')
-rw-r--r--src/GCodes/GCodeChannel.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/GCodes/GCodeChannel.h b/src/GCodes/GCodeChannel.h
index cc36acca..7ea8434a 100644
--- a/src/GCodes/GCodeChannel.h
+++ b/src/GCodes/GCodeChannel.h
@@ -13,7 +13,9 @@
// The Microchip device library for SAME5x defines USB as the USB peripheral.
// We can't change the channel name to something else because it breaks compatibility with DSF, so #undef it here
-#undef USB
+#ifdef USB
+# undef USB
+#endif
NamedEnum(GCodeChannel, uint8_t, HTTP, Telnet, File, USB, Aux, Trigger, Queue, LCD, SBC, Daemon, Aux2, Autopause);