Extend ESP32 HardwareSerial with flushTX. (#13588)
This commit is contained in:
		
				
					committed by
					
						
						Scott Lahteine
					
				
			
			
				
	
			
			
			
						parent
						
							3c47e1b4d1
						
					
				
				
					commit
					27693cec29
				
			@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user