Add COMMAND_ENABLE build option
This commit is contained in:
		
							parent
							
								
									9a106537f6
								
							
						
					
					
						commit
						1687041267
					
				
					 3 changed files with 10 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -18,8 +18,12 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		|||
#ifndef COMMAND_H
 | 
			
		||||
#define COMMAND
 | 
			
		||||
 | 
			
		||||
#ifdef COMMAND_ENABLE
 | 
			
		||||
bool command_proc(uint8_t code);
 | 
			
		||||
/* This allows to extend commands. Return 0 when command is not processed. */
 | 
			
		||||
bool command_extra(uint8_t code);
 | 
			
		||||
#else
 | 
			
		||||
#define command_proc(code)      false
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue