No description
Dependents: ros_lib_kinetic ds
Diff: BufferedSerial.h
- Revision:
- 13:c17c532bc4f8
- Parent:
- 12:a0d37088b405
- Child:
- 14:7e5e866edd3d
--- a/BufferedSerial.h Mon Mar 07 21:10:27 2016 +0000 +++ b/BufferedSerial.h Wed Feb 20 01:29:28 2019 +0000 @@ -27,6 +27,12 @@ #include "mbed.h" #include "MyBuffer.h" +#if (MBED_MAJOR_VERSION == 5) && (MBED_MINOR_VERSION >= 2) +#elif (MBED_MAJOR_VERSION == 2) && (MBED_PATCH_VERSION > 130) +#else +#error "BufferedSerial version 13 requires use of Mbed OS 5.2.0 and newer or Mbed 2 version 130 and newer. Use BufferedSerial version 12 and older or upgrade the Mbed version. +#endif + /** A serial port (UART) for communication with other serial devices * * Can be used for Full Duplex communication, or Simplex by specifying