Skip to content

Commit dde4c11

Browse files
committed
Fix version reference
1 parent e7d1d7c commit dde4c11

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ESP32/ESP32.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
#include "rtos/Mutex.h"
3535
#include "rtos/ThisThread.h"
3636

37-
#if (MBED_MAJOR_VERSION >= 6)
38-
#include "drivers/BufferedSerial.h"
39-
#else
37+
#if (MBED_MAJOR_VERSION < 6)
4038
#include "drivers/UARTSerial.h"
39+
#else
40+
#include "drivers/BufferedSerial.h"
4141
#endif
4242

4343
#ifndef ESP32_CONNECT_TIMEOUT
@@ -275,10 +275,10 @@ class ESP32
275275
mbed::DigitalOut * _p_wifi_io0;
276276
bool _init_end_common;
277277
bool _init_end_wifi;
278-
#if (MBED_MAJOR_VERSION >= 6)
279-
mbed::BufferedSerial _serial;
280-
#else
278+
#if (MBED_MAJOR_VERSION < 6)
281279
mbed::UARTSerial _serial;
280+
#else
281+
mbed::BufferedSerial _serial;
282282
#endif
283283
mbed::ATCmdParser _parser;
284284
struct packet {

0 commit comments

Comments
 (0)