Skip to content

Commit c09eda9

Browse files
remove unused include. Include SW serial lib when compiled in Arduino 1.0.x
1 parent 0e3a973 commit c09eda9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/StandardFirmata/StandardFirmata.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@
2525

2626
#include <Servo.h>
2727
#include <Wire.h>
28-
#include <ArduinoUnit.h>
2928
#include <Firmata.h>
3029

3130
// SoftwareSerial is only supported for AVR-based boards
32-
#if defined(ARDUINO_ARCH_AVR)
31+
// The second condition checks if the IDE is in the 1.0.x series, if so, include SoftwareSerial
32+
// since it should be available to all boards in that IDE.
33+
#if defined(ARDUINO_ARCH_AVR) || (ARDUINO >= 100 && ARDUINO < 10500)
3334
#include <SoftwareSerial.h>
3435
#endif
3536
#include "utility/serialUtils.h"

0 commit comments

Comments
 (0)