From 87e28c059980bcf85633cc1f5ccfdf0b3a6d088d Mon Sep 17 00:00:00 2001 From: Erik van der Zalm Date: Sun, 20 Oct 2013 09:55:15 +0200 Subject: [PATCH] Added ifdefs to blinkm --- Marlin/BlinkM.cpp | 4 ++++ Marlin/Marlin_main.cpp | 2 ++ 2 files changed, 6 insertions(+) diff --git a/Marlin/BlinkM.cpp b/Marlin/BlinkM.cpp index 7b8a7867c2..52a45859ff 100644 --- a/Marlin/BlinkM.cpp +++ b/Marlin/BlinkM.cpp @@ -2,6 +2,8 @@ BlinkM.cpp - Library for controlling a BlinkM over i2c Created by Tim Koster, August 21 2013. */ +#ifdef BLINKM + #if (ARDUINO >= 100) # include "Arduino.h" #else @@ -22,3 +24,5 @@ void SendColors(byte red, byte grn, byte blu) Wire.endTransmission(); } +#endif //BLINKM + diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index d62c2f6b90..d0262d30e0 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -44,8 +44,10 @@ #include "language.h" #include "pins_arduino.h" +#ifdef BLINKM #include "BlinkM.h" #include "Wire.h" +#endif #if NUM_SERVOS > 0 #include "Servo.h"