mirror of https://github.com/lumapu/ahoy.git
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							23 lines
						
					
					
						
							452 B
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							23 lines
						
					
					
						
							452 B
						
					
					
				| #ifndef __DEBUG_H | |
|  | |
| #define __DEBUG_H | |
|  | |
| #ifdef DEBUG | |
|   #define DEBUG_OUT  Serial | |
| #else  | |
| //--- | |
| // disable Serial DEBUG output | |
|   #define DEBUG_OUT DummySerial | |
|   static class { | |
|   public: | |
|       void begin(...) {} | |
|       void print(...) {} | |
|       void println(...) {} | |
|       void flush() {} | |
|       bool available() { return false;} | |
|       int  readBytes(...) { return 0;} | |
|       int  printf (...) {return 0;} | |
|   } DummySerial; | |
| #endif | |
|  | |
| #endif 
 | |
| 
 |