Aesthetic coding
This commit is contained in:
		
							
								
								
									
										13
									
								
								d_helper.h
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								d_helper.h
									
									
									
									
									
								
							@@ -4,17 +4,18 @@
 | 
				
			|||||||
void handleTelnet(void);
 | 
					void handleTelnet(void);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// ################# Macros for debugging ################
 | 
					// ################# Macros for debugging ################
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef DEBUG_TELNET
 | 
					#ifdef DEBUG_TELNET
 | 
				
			||||||
#define     DEBUG_PRINT(x)    telnetClient.print(x)
 | 
					#define     DEBUG_PRINT(x)                  telnetClient.print(x)
 | 
				
			||||||
#define     DEBUG_PRINTF(x,y)   telnetClient.printf(x,y)
 | 
					#define     DEBUG_PRINTF(x,y)               telnetClient.printf(x,y)
 | 
				
			||||||
#define     DEBUG_PRINT_WITH_FMT(x, fmt)    telnetClient.print(x, fmt)
 | 
					#define     DEBUG_PRINT_WITH_FMT(x, fmt)    telnetClient.print(x, fmt)
 | 
				
			||||||
#define     DEBUG_PRINTLN(x)  telnetClient.println(x)
 | 
					#define     DEBUG_PRINTLN(x)                telnetClient.println(x)
 | 
				
			||||||
#define     DEBUG_PRINTLN_WITH_FMT(x, fmt)  telnetClient.println(x, fmt)
 | 
					#define     DEBUG_PRINTLN_WITH_FMT(x, fmt)  telnetClient.println(x, fmt)
 | 
				
			||||||
#else
 | 
					#else
 | 
				
			||||||
#define     DEBUG_PRINT(x)    Serial.print(x)
 | 
					#define     DEBUG_PRINT(x)                  Serial.print(x)
 | 
				
			||||||
#define     DEBUG_PRINTF(x,y)   Serial.printf(x,y)
 | 
					#define     DEBUG_PRINTF(x,y)               Serial.printf(x,y)
 | 
				
			||||||
#define     DEBUG_PRINT_WITH_FMT(x, fmt)    Serial.print(x, fmt)
 | 
					#define     DEBUG_PRINT_WITH_FMT(x, fmt)    Serial.print(x, fmt)
 | 
				
			||||||
#define     DEBUG_PRINTLN(x)  Serial.println(x)
 | 
					#define     DEBUG_PRINTLN(x)                Serial.println(x)
 | 
				
			||||||
#define     DEBUG_PRINTLN_WITH_FMT(x, fmt)  Serial.println(x, fmt)
 | 
					#define     DEBUG_PRINTLN_WITH_FMT(x, fmt)  Serial.println(x, fmt)
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user