Extend ESP32 HardwareSerial with flushTX. (#13588)

This commit is contained in:
Kajetan Rzepecki
2019-04-06 02:04:02 +02:00
committed by Scott Lahteine
parent 3c47e1b4d1
commit 27693cec29
3 changed files with 71 additions and 1 deletions

View File

@ -48,6 +48,7 @@
#include "HAL_timers_ESP32.h"
#include "WebSocketSerial.h"
#include "FlushableHardwareSerial.h"
// --------------------------------------------------------------------------
// Defines
@ -55,7 +56,7 @@
extern portMUX_TYPE spinlock;
#define MYSERIAL0 Serial
#define MYSERIAL0 flushableSerial
#if ENABLED(WIFISUPPORT)
#define NUM_SERIAL 2